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 Sep 1, 2020
1 parent 8da79c1 commit c9faa89
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 c9faa89

Please sign in to comment.