Fix sliding sync not returning rooms the user is invited to
This commit is contained in:
parent
76c09851ea
commit
fd519ff7f1
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue