Matrix: no history backfill #47

Closed
opened 2026-08-29 09:59:46 -04:00 by Salastil · 1 comment
Owner

There is no /messages call anywhere in the Matrix backend. Scrollback is only what the daemon witnessed live, read back out of local SQLite.

Join a room with years of history and you see nothing above your first sync. Restart with a fresh store and everything before that moment is gone. Discord has three separate backfill paths (backfill_channel_history, extend_history, catch_up_channel); Matrix has none.

Done looks like: GET /rooms/{id}/messages with from/dir=b paging, wired into getBacklog's before > 0 branch the way Discord's extend_history already is. Two things to handle while there: origin_server_ts needs to be used for the timestamp (see the separate issue), and encrypted rooms need each backfilled event run through decrypt_room_event.


Filed from a protocol coverage survey of the four deployed protocols, 2026-08-29 (moho 1a11250, nobilis 030707f).

There is no `/messages` call anywhere in the Matrix backend. Scrollback is only what the daemon witnessed live, read back out of local SQLite. Join a room with years of history and you see nothing above your first sync. Restart with a fresh store and everything before that moment is gone. Discord has three separate backfill paths (`backfill_channel_history`, `extend_history`, `catch_up_channel`); Matrix has none. **Done looks like:** `GET /rooms/{id}/messages` with `from`/`dir=b` paging, wired into `getBacklog`'s `before > 0` branch the way Discord's `extend_history` already is. Two things to handle while there: `origin_server_ts` needs to be used for the timestamp (see the separate issue), and encrypted rooms need each backfilled event run through `decrypt_room_event`. --- _Filed from a protocol coverage survey of the four deployed protocols, 2026-08-29 (moho `1a11250`, nobilis `030707f`)._
Salastil added the feature label 2026-08-29 09:59:46 -04:00
Author
Owner

Finished — nobilis e1665bf

Finished — nobilis [`e1665bf`](https://git.salastil.com/Salastil/nobilis/commit/e1665bf)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#47