mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Ignore forgotten rooms in v2 sync
This commit is contained in:
parent
9da4c5340d
commit
df6824a008
@ -160,7 +160,7 @@ class RoomMemberStore(SQLBaseStore):
|
||||
|
||||
def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
|
||||
membership_list):
|
||||
where_clause = "user_id = ? AND (%s)" % (
|
||||
where_clause = "user_id = ? AND (%s) AND NOT forgotten" % (
|
||||
" OR ".join(["membership = ?" for _ in membership_list]),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user