Ignore forgotten rooms in v2 sync

pull/385/head
Daniel Wagner-Hall 2015-11-19 14:54:47 -05:00
parent 9da4c5340d
commit df6824a008
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class RoomMemberStore(SQLBaseStore):
def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id, def _get_rooms_for_user_where_membership_is_txn(self, txn, user_id,
membership_list): membership_list):
where_clause = "user_id = ? AND (%s)" % ( where_clause = "user_id = ? AND (%s) AND NOT forgotten" % (
" OR ".join(["membership = ?" for _ in membership_list]), " OR ".join(["membership = ?" for _ in membership_list]),
) )