mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 02:04:48 -04:00
Update places where we create events
This commit is contained in:
parent
5ff3d23564
commit
3fa362502c
7 changed files with 42 additions and 38 deletions
|
@ -171,6 +171,7 @@ class ShutdownRoomRestServlet(ClientV1RestServlet):
|
|||
self.store = hs.get_datastore()
|
||||
self.handlers = hs.get_handlers()
|
||||
self.state = hs.get_state_handler()
|
||||
self.event_creation_handler = hs.get_event_creation_handler()
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def on_POST(self, request, room_id):
|
||||
|
@ -203,8 +204,7 @@ class ShutdownRoomRestServlet(ClientV1RestServlet):
|
|||
)
|
||||
new_room_id = info["room_id"]
|
||||
|
||||
msg_handler = self.handlers.message_handler
|
||||
yield msg_handler.create_and_send_nonmember_event(
|
||||
yield self.event_creation_handler.create_and_send_nonmember_event(
|
||||
room_creator_requester,
|
||||
{
|
||||
"type": "m.room.message",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue