summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-10-07 14:09:17 +0100
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-10-07 14:50:46 +0100
commited3f6ea30ee3572b98c6dfa52b7d441ede2555fc (patch)
treee26656081842ae2cde90eb764299aa6055049565
parentDecide which kind of prev_events we care about (diff)
downloadsynapse-ed3f6ea30ee3572b98c6dfa52b7d441ede2555fc.tar.xz
Uncertain: I think we want the adjusted FEs here
-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