Skip to content

Commit 71e9669

Browse files
committed
Remove extra related changes
See matrix-org/synapse#11243 Also see matrix-org/synapse#9247
1 parent a706b7b commit 71e9669

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

synapse/handlers/message.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,6 @@ async def create_new_client_event(
12221222
if state_event_ids is not None:
12231223
# Do a quick check to make sure that prev_event_ids is present to
12241224
# make the type-checking around `builder.build` happy.
1225-
# prev_event_ids could be an empty array though.
12261225
assert prev_event_ids is not None
12271226

12281227
temp_event = await builder.build(

synapse/handlers/room_member.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -916,24 +916,6 @@ async def update_membership_locked(
916916
)
917917
# InviteRule.IGNORE is handled at the sync layer.
918918

919-
# An empty prev_events list is allowed as long as the auth_event_ids are present
920-
if prev_event_ids is not None:
921-
return await self._local_membership_update(
922-
requester=requester,
923-
target=target,
924-
room_id=room_id,
925-
membership=effective_membership_state,
926-
txn_id=txn_id,
927-
ratelimit=ratelimit,
928-
prev_event_ids=prev_event_ids,
929-
state_event_ids=state_event_ids,
930-
depth=depth,
931-
content=content,
932-
require_consent=require_consent,
933-
outlier=outlier,
934-
origin_server_ts=origin_server_ts,
935-
)
936-
937919
latest_event_ids = await self.store.get_prev_events_for_room(room_id)
938920

939921
is_partial_state_room = await self.store.is_partial_state_room(room_id)

0 commit comments

Comments
 (0)