MSC2367 Allow reason field on all member events

pull/6434/head
Erik Johnston 2019-11-28 11:02:04 +00:00
parent a9c44d4008
commit 69d8fb83c6
1 changed files with 1 additions and 1 deletions

View File

@ -714,7 +714,7 @@ class RoomMembershipRestServlet(TransactionRestServlet):
target = UserID.from_string(content["user_id"])
event_content = None
if "reason" in content and membership_action in ["kick", "ban"]:
if "reason" in content:
event_content = {"reason": content["reason"]}
await self.room_member_handler.update_membership(