mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 17:09:23 -05:00
fix missing yield for server_notices_room
This commit is contained in:
parent
fed62e21ad
commit
88d3405332
@ -299,9 +299,10 @@ class RoomMemberHandler(object):
|
|||||||
if is_blocked:
|
if is_blocked:
|
||||||
raise SynapseError(403, "This room has been blocked on this server")
|
raise SynapseError(403, "This room has been blocked on this server")
|
||||||
else:
|
else:
|
||||||
if self._is_server_notice_room(room_id):
|
|
||||||
# we don't allow people to reject invites to, or leave, the
|
# we don't allow people to reject invites to, or leave, the
|
||||||
# server notice room.
|
# server notice room.
|
||||||
|
is_blocked = yield self._is_server_notice_room(room_id)
|
||||||
|
if is_blocked:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
http_client.FORBIDDEN,
|
http_client.FORBIDDEN,
|
||||||
"You cannot leave this room",
|
"You cannot leave this room",
|
||||||
|
Loading…
Reference in New Issue
Block a user