╭ changed ──────╮ │src/ui/User.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │91 _ = try pair.value_cursor.readBytes(&event_id); │ │92 const repo_event = (try evt.Repo.readById(DB, hash_kind, moment, arena, &event_id)) orelse continue; │ │93 // unreadable repos leave their window short rather than shifting the others │ │94 - if (try evt.Repo.roleOf(DB, hash_kind, moment, arena, repo_event, &event_id, session.userId()) == .none) continue;│ │94 + if (try evt.Repo.roleOf(DB, hash_kind, moment, arena, repo_event, &event_id, session.userId()) == null) continue; │ │95 try repos.append(arena.allocator(), repo_event); │ │96 } │ │97 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │108 const kv_cursor = (try iter.next()) orelse break; │ │109 const repo_id = try evt.readOrderKeyId(DB, kv_cursor); │ │110 const repo_event = (try evt.Repo.readById(DB, hash_kind, moment, arena, &repo_id)) orelse continue; │ │111 - if (try evt.Repo.roleOf(DB, hash_kind, moment, arena, repo_event, &repo_id, session.userId()) == .none) continue;│ │111 + if (try evt.Repo.roleOf(DB, hash_kind, moment, arena, repo_event, &repo_id, session.userId()) == null) continue; │ │112 try repos.append(arena.allocator(), repo_event); │ │113 } │ │114 repos_next_start = if (end < count) end else null; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │134 // the target lives in its owner's user repo │ │135 const owner_id = record.event.repo_user_id[0..evt.event_id_size]; │ │136 const target = (try evt.readRepoById(io, gpa, arena, users_dir, owner_id, record.event.repo_id[0..evt.event_id_size], session.userId())) orelse continue;│ │137 - if (target.role == .none) continue; │ │137 + if (target.role == null) continue; │ │138 const target_repo = target.repo; │ │139 │ │140 var title: []const u8 = "(unavailable)"; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯