diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 4ee6f19c8bd..3a22b2fe216 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -606,6 +606,8 @@ async def do_invite_join( content: The event content to use for the join event. """ + logger.info("🧲 do_invite_join for %s in %s", joinee, room_id) + # TODO: We should be able to call this on workers, but the upgrading of # room stuff after join currently doesn't work on workers. # TODO: Before we relax this condition, we need to allow re-syncing of diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index a23aaf50962..11a7de1cc12 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -2836,6 +2836,8 @@ def _store_room_members_txn( for backfilled events because backfilled events in the past do not affect the current local state. """ + for event in events: + logger.info("🔦 _store_room_members_txn update room_memberships: %s", event) self.db_pool.simple_insert_many_txn( txn, @@ -2892,6 +2894,10 @@ def _store_room_members_txn( Membership.LEAVE, ) + logger.info( + "🔦 _store_room_members_txn update local_current_membership: %s", + event, + ) self.db_pool.simple_upsert_txn( txn, table="local_current_membership",