╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │430 ) !?Data.Entry { │ │431 const DB = evt.EventDB(hash_kind); │ │432 const aa = arena.allocator(); │ │433 + const id = order_key[@sizeOf(u64)..]; │ │434 const id_hex = keyIdHex(order_key); │ │434 - const record_cursor = try records.getCursor(hash.hashInt(hash_kind, order_key[@sizeOf(u64)..])) orelse return null; │ │435 + const record_cursor = try records.getCursor(hash.hashInt(hash_kind, id)) orelse return null; │ │436 const record = try evt.read(Data.Event.Record, DB, hash_kind, arena, try DB.HashMap(.read_only).init(record_cursor));│ │437 var entry: Data.Entry = .{ │ │438 .id = try aa.dupe(u8, &id_hex), │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │444 admin_moment, │ │445 haxy_moment, │ │446 evt.Comment.thread_id_to_comment_id_set_key, │ │446 - &id_hex, │ │447 + id, │ │448 if (std.mem.eql(u8, &id_hex, selected_id)) comments_start else 0,│ │449 viewer, │ │450 ), │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │450 - .attachments = try Attachment.load(hash_kind, arena, haxy_moment, &id_hex), │ │451 - .assignees = try loadAssignees(hash_kind, arena, admin_moment, haxy_moment, &id_hex), │ │451 + .attachments = try Attachment.load(hash_kind, arena, haxy_moment, id), │ │452 + .assignees = try loadAssignees(hash_kind, arena, admin_moment, haxy_moment, id), │ │453 .can_modify = if (viewer) |v| v.role.canModify(v.email, record.author_email) else false,│ │454 }; │ │455 if (comptime @hasField(Data.Entry, "conflicted")) { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │464 arena: *std.heap.ArenaAllocator, │ │465 admin_moment: ?evt.AdminDB.HashMap(.read_only), │ │466 haxy_moment: evt.EventDB(hash_kind).HashMap(.read_only), │ │466 - thread_id: []const u8, │ │467 + thread_id: *const [evt.event_id_size]u8, │ │468 ) ![]const ui.Assignee { │ │469 const emails = try evt.Assignment.load(hash_kind, arena, haxy_moment, thread_id);│ │470 const assignees = try arena.allocator().alloc(ui.Assignee, emails.len); │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯