Use create_and_send_nonmember_event everywhere

pull/14/head
Erik Johnston 7 years ago
parent 135fc5b9cd
commit 56b0589865
  1. 7
      synapse/rest/client/v1/room.py

@ -165,17 +165,12 @@ class RoomStateEventRestServlet(ClientV1RestServlet):
content=content,
)
else:
event, context = yield self.event_creation_hander.create_event(
event = yield self.event_creation_hander.create_and_send_nonmember_event(
requester,
event_dict,
token_id=requester.access_token_id,
txn_id=txn_id,
)
yield self.event_creation_hander.send_nonmember_event(
requester, event, context,
)
ret = {}
if event:
ret = {"event_id": event.event_id}

Loading…
Cancel
Save