summary refs log tree commit diff
path: root/synapse/handlers/room_member.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r--synapse/handlers/room_member.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index 6ad2b38b8f..90fd3b4a8a 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -799,7 +799,9 @@ class RoomMemberHandler(metaclass=abc.ABCMeta):
                 origin_server_ts=origin_server_ts,
             )
 
-        latest_event_ids = await self.store.get_prev_events_for_room(room_id)
+        latest_event_ids = await self.store.get_prev_events_for_creating_event_in_room(
+            room_id
+        )
 
         state_before_join = await self.state_handler.compute_state_after_events(
             room_id, latest_event_ids