mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Fix sliding sync not returning rooms the user is invited to
This commit is contained in:
1 parent
76c09851ea
commit
fd519ff7f1
1 file changed
+7
-1
@@ -143,8 +143,14 @@ pub(super) async fn filter_room_meta(
|
||||
.user_can_see_state_events(sender_user, room_id)
|
||||
.is_false();
|
||||
|
||||
pin_mut!(not_visible, not_exists, is_disabled, is_banned);
|
||||
let not_invited = services
|
||||
.state_cache
|
||||
.is_invited(sender_user, room_id)
|
||||
.is_false();
|
||||
|
||||
pin_mut!(not_visible, not_invited, not_exists, is_disabled, is_banned);
|
||||
not_visible
|
||||
.and(not_invited)
|
||||
.or(not_exists)
|
||||
.or(is_disabled)
|
||||
.or(is_banned)
|
||||
|
||||
Reference in new issue
Block a user