Add a slow way to search a room

This commit is contained in:
Nicolas Werner 2022-10-06 21:59:59 +02:00
parent 857d9cf2b6
commit f1c1f18f81
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
8 changed files with 120 additions and 48 deletions

View file

@ -898,6 +898,7 @@ EventStore::fetchMore()
mtx::http::MessagesOpts opts;
opts.room_id = room_id_;
opts.from = cache::client()->previousBatchToken(room_id_);
opts.limit = 80;
nhlog::ui()->debug("Paginating room {}, token {}", opts.room_id, opts.from);