From c9faa89eb36f6d4dd10e54adc20d278e4eadbe91 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Mon, 31 Aug 2020 15:37:49 -0400 Subject: [PATCH] Membership change can only be left now. --- synapse/replication/http/membership.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/replication/http/membership.py b/synapse/replication/http/membership.py index 9f2a2e9fe490..08095fdf7d2c 100644 --- a/synapse/replication/http/membership.py +++ b/synapse/replication/http/membership.py @@ -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 {}