Matrix: search only reads local scrollback, never the server #95

Closed
opened 2026-09-02 23:25:38 -04:00 by Salastil · 1 comment
Owner

searchMessages (rpc/methods.rs:846) queries store.search_messages - this window's own copy of a single buffer. Matrix has POST /_matrix/client/v3/search, which searches the whole account server-side, across rooms, including messages this client has never downloaded.

So searching for something said last year in a room you joined last week finds nothing, and nothing says why.

Done looks like: Matrix rooms search server-side with local results shown first, and the scope (this room / everywhere) is a choice.

`searchMessages` (rpc/methods.rs:846) queries `store.search_messages` - this window's own copy of a single buffer. Matrix has `POST /_matrix/client/v3/search`, which searches the whole account server-side, across rooms, including messages this client has never downloaded. So searching for something said last year in a room you joined last week finds nothing, and nothing says why. **Done looks like:** Matrix rooms search server-side with local results shown first, and the scope (this room / everywhere) is a choice.
Salastil added the feature label 2026-09-03 13:11:29 -04:00
Author
Owner

Finished — https://git.salastil.com/Salastil/nobilis/commit/c6d1988 and https://git.salastil.com/Salastil/moho/commit/c5aabac

Server-side search for one room or every room the account is in. Local results show the moment they answer and the server's arrive beside them, deduplicated by event id; a cross-room hit says which room and goes there when pressed. An encrypted room says why the server found nothing rather than looking broken.

Finished — https://git.salastil.com/Salastil/nobilis/commit/c6d1988 and https://git.salastil.com/Salastil/moho/commit/c5aabac Server-side search for one room or every room the account is in. Local results show the moment they answer and the server's arrive beside them, deduplicated by event id; a cross-room hit says which room and goes there when pressed. An encrypted room says why the server found nothing rather than looking broken.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Salastil/moho#95