mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 15:52:20 -04:00
Require unbanning before other membership changes
This commit is contained in:
parent
c049f60d4a
commit
ac5a4477ad
6 changed files with 116 additions and 58 deletions
|
@ -156,7 +156,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
|||
builder
|
||||
)
|
||||
|
||||
yield room_handler.change_membership(event, context)
|
||||
yield room_handler.send_membership_event(event, context)
|
||||
|
||||
self.state_handler.compute_event_context.assert_called_once_with(
|
||||
builder
|
||||
|
@ -232,7 +232,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
|||
)
|
||||
|
||||
# Actual invocation
|
||||
yield room_handler.change_membership(event, context)
|
||||
yield room_handler.send_membership_event(event, context)
|
||||
|
||||
self.federation.handle_new_event.assert_called_once_with(
|
||||
event, destinations=set()
|
||||
|
@ -312,7 +312,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
|
|||
self.distributor.observe("user_left_room", leave_signal_observer)
|
||||
|
||||
# Actual invocation
|
||||
yield room_handler.change_membership(event, context)
|
||||
yield room_handler.send_membership_event(event, context)
|
||||
|
||||
self.federation.handle_new_event.assert_called_once_with(
|
||||
event, destinations=set(['red'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue