forked from MirrorHub/synapse
MSC2367 Allow reason field on all member events
This commit is contained in:
parent
a9c44d4008
commit
69d8fb83c6
1 changed files with 1 additions and 1 deletions
|
@ -714,7 +714,7 @@ class RoomMembershipRestServlet(TransactionRestServlet):
|
||||||
target = UserID.from_string(content["user_id"])
|
target = UserID.from_string(content["user_id"])
|
||||||
|
|
||||||
event_content = None
|
event_content = None
|
||||||
if "reason" in content and membership_action in ["kick", "ban"]:
|
if "reason" in content:
|
||||||
event_content = {"reason": content["reason"]}
|
event_content = {"reason": content["reason"]}
|
||||||
|
|
||||||
await self.room_member_handler.update_membership(
|
await self.room_member_handler.update_membership(
|
||||||
|
|
Loading…
Reference in a new issue