fix(bookmarks): drop unused senderId from stored bookmark

Review noted the 500-entry io.lotus.bookmarks blob approaches the ~65KB event
limit. The senderId I stored was never read back (the panel re-resolves the
live sender via the event and uses the senderName snapshot otherwise), so it
was dead payload. Keep only senderName.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-10 15:40:39 -04:00
co-authored by Claude Opus 4.8
parent e01b87b214
commit 23e264d179
2 changed files with 5 additions and 5 deletions
@@ -1190,7 +1190,6 @@ export const Message = React.memo(
savedAt: Date.now(),
previewText: body.slice(0, 120),
roomName: room.name,
senderId,
senderName: senderDisplayName,
});
}
+5 -4
View File
@@ -8,10 +8,11 @@ export type Bookmark = {
savedAt: number;
previewText: string;
roomName: string;
// Author of the saved message. Optional for backward compatibility with
// bookmarks stored before attribution was added; the panel resolves a live
// name when the room is joined and falls back to these snapshots otherwise.
senderId?: string;
// Author display name, snapshotted at save time. Optional for backward
// compatibility with bookmarks stored before attribution was added; the panel
// re-resolves a live name when the room is joined and falls back to this
// snapshot otherwise. (We deliberately don't store the sender MXID — it's never
// read back and would only grow the 500-entry account-data blob.)
senderName?: string;
};