mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-01 09:06:03 -04:00
custom error code for not leaving server notices room
This commit is contained in:
parent
0a078026ea
commit
08bfc48abf
2 changed files with 2 additions and 0 deletions
|
@ -306,6 +306,7 @@ class RoomMemberHandler(object):
|
|||
raise SynapseError(
|
||||
http_client.FORBIDDEN,
|
||||
"You cannot leave this room",
|
||||
errcode=Codes.CANNOT_LEAVE_SERVER_NOTICE_ROOM,
|
||||
)
|
||||
|
||||
if effective_membership_state == Membership.INVITE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue