Skip to content
Snippets Groups Projects
Commit 14975ce5 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix bug where we relied on the current_state_events being updated when we are...

Fix bug where we relied on the current_state_events being updated when we are handling type specific persistence
parent 667e747e
No related branches found
No related tags found
No related merge requests found
......@@ -66,8 +66,8 @@ class RoomMemberStore(SQLBaseStore):
# Check if this was the last person to have left.
member_events = self._get_members_query_txn(
txn,
where_clause="c.room_id = ? AND m.membership = ?",
where_values=(event.room_id, Membership.JOIN,)
where_clause="c.room_id = ? AND m.membership = ? AND m.user_id != ?",
where_values=(event.room_id, Membership.JOIN, target_user_id,)
)
joined_domains = set()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment