Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add more debug for #4422 (#4769)
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Feb 28, 2019
1 parent 67acd1a commit bf3f8b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/4769.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add more debug for #4422.
11 changes: 11 additions & 0 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,17 @@ def _get_rooms_changed(self, sync_result_builder, ignored_users):
old_mem_ev = yield self.store.get_event(
old_mem_ev_id, allow_none=True
)

# debug for #4422
if has_join:
prev_membership = None
if old_mem_ev:
prev_membership = old_mem_ev.membership
logger.info(
"Previous membership for room %s with join: %s (event %s)",
room_id, prev_membership, old_mem_ev_id,
)

if not old_mem_ev or old_mem_ev.membership != Membership.JOIN:
newly_joined_rooms.append(room_id)

Expand Down

0 comments on commit bf3f8b8

Please sign in to comment.