summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-15 17:01:12 +0000
committerErik Johnston <erik@matrix.org>2014-12-15 17:01:12 +0000
commitcf6e5f1dbf3cecf693e45f293535e71ee31801ed (patch)
treeea0f29cfd9168f1d1a7030ca66372cd42df64eb8 /synapse/handlers/room.py
parentRemove unused functions (diff)
downloadsynapse-cf6e5f1dbf3cecf693e45f293535e71ee31801ed.tar.xz
Rename MessageHandler.handle_event. Add a few comments.
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index d317f2b30e..f7cc869225 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -126,11 +126,11 @@ class RoomCreationHandler(BaseHandler):
         msg_handler = self.hs.get_handlers().message_handler
 
         for event in creation_events:
-            yield msg_handler.handle_event(event)
+            yield msg_handler.create_and_send_event(event)
 
         if "name" in config:
             name = config["name"]
-            yield msg_handler.handle_event({
+            yield msg_handler.create_and_send_event({
                 "type": RoomNameEvent.TYPE,
                 "room_id": room_id,
                 "sender": user_id,
@@ -139,7 +139,7 @@ class RoomCreationHandler(BaseHandler):
 
         if "topic" in config:
             topic = config["topic"]
-            yield msg_handler.handle_event({
+            yield msg_handler.create_and_send_event({
                 "type": RoomTopicEvent.TYPE,
                 "room_id": room_id,
                 "sender": user_id,
@@ -147,7 +147,7 @@ class RoomCreationHandler(BaseHandler):
             })
 
         for invitee in invite_list:
-            yield msg_handler.handle_event({
+            yield msg_handler.create_and_send_event({
                 "type": RoomMemberEvent.TYPE,
                 "state_key": invitee,
                 "room_id": room_id,