knocking implementation

Signed-off-by: strawberry <strawberry@puppygock.gay>

add sync bit of knocking

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry committed 2025-01-13 14:15:16 -05:00
1 parent fabd3cf567
commit 5a1c41e66b
14 files changed
+978 -117

No files matched your search

+9
View File
@@ -113,9 +113,18 @@ pub(crate) async fn sync_events_v4_route(
.collect()
.await;
let all_knocked_rooms: Vec<_> = services
.rooms
.state_cache
.rooms_knocked(sender_user)
.map(|r| r.0)
.collect()
.await;
let all_rooms = all_joined_rooms
.iter()
.chain(all_invited_rooms.iter())
.chain(all_knocked_rooms.iter())
.map(Clone::clone)
.collect();