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

Commit

Permalink
Membership change can only be left now.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Aug 31, 2020
1 parent 92a1aee commit 563a421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/replication/http/membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ async def _serialize_payload(room_id, user_id, change):
Args:
room_id (str)
user_id (str)
change (str): Either "joined" or "left"
change (str): "left"
"""
assert change in ("joined", "left")
assert change == "left"

return {}

Expand Down

0 comments on commit 563a421

Please sign in to comment.