Add invite rooms to sync v3 watch rooms list.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-20 23:57:52 +00:00
parent 9640afebff
commit 5b3f0fde23

View File

@@ -163,7 +163,11 @@ pub(crate) async fn sync_events_route(
.expect("configuration must limit maximum timeout");
loop {
let watch_rooms = services.state_cache.rooms_joined(sender_user);
let watch_rooms = services
.state_cache
.rooms_joined(sender_user)
.chain(services.state_cache.rooms_invited(sender_user));
let watchers = services
.sync
.watch(sender_user, sender_device, watch_rooms);