Discord: scrollback can be repaired by the daemon and by nothing else #201

Closed
opened 2026-09-11 22:34:35 -04:00 by Salastil · 1 comment
Owner

refillDiscordHistory (nobilis/src/rpc/methods.rs:1082) re-reads recent history and
stores only what is missing. Given no bufferId it sweeps every Discord buffer. Nothing
calls it.

Its own comment explains why the sweeping shape is the useful one: after a storage bug
the messages that went missing are by definition the ones nobody knows to go looking
for. Which is exactly why it needs a button rather than a caller - the person who needs
it cannot know they need it for any particular conversation.

Somewhere in Settings, next to the other maintenance actions.

Found by a September 2026 sweep of all 182 daemon RPC methods against every string
literal in src/. setKickChatMode was excluded on purpose: it is unreachable too, and
says so in its own comment (#167). The methods listed as superseded by that sweep -
uploadFile, listDiscordCommands, setMatrixIgnored, openIrcQuery,
setMatrixRoomState, unsubscribe - are fine and want nothing.

`refillDiscordHistory` (`nobilis/src/rpc/methods.rs:1082`) re-reads recent history and stores only what is missing. Given no `bufferId` it sweeps every Discord buffer. Nothing calls it. Its own comment explains why the sweeping shape is the useful one: after a storage bug the messages that went missing are by definition the ones nobody knows to go looking for. Which is exactly why it needs a button rather than a caller - the person who needs it cannot know they need it for any particular conversation. Somewhere in Settings, next to the other maintenance actions. --- Found by a September 2026 sweep of all 182 daemon RPC methods against every string literal in `src/`. `setKickChatMode` was excluded on purpose: it is unreachable too, and says so in its own comment (#167). The methods listed as superseded by that sweep - `uploadFile`, `listDiscordCommands`, `setMatrixIgnored`, `openIrcQuery`, `setMatrixRoomState`, `unsubscribe` - are fine and want nothing.
Salastil added the featurelow priority labels 2026-09-11 22:34:35 -04:00
Author
Owner
Finished https://git.salastil.com/Salastil/moho/commit/fb5724a
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#201