summary refs log tree commit diff
path: root/synapse/server_notices/server_notices_manager.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-14 11:20:41 +0100
committerNeil Johnson <neil@matrix.org>2018-08-14 11:20:41 +0100
commit9b75c78b4df276fe40d3f1b92a57481c3e970886 (patch)
tree2fb6e80dd32ffc0068748fa138bf368572f3793c /synapse/server_notices/server_notices_manager.py
parentfix typo (diff)
downloadsynapse-9b75c78b4df276fe40d3f1b92a57481c3e970886.tar.xz
support server notice state events for resource limits
Diffstat (limited to 'synapse/server_notices/server_notices_manager.py')
-rw-r--r--synapse/server_notices/server_notices_manager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py
index a26deace53..4806977a89 100644
--- a/synapse/server_notices/server_notices_manager.py
+++ b/synapse/server_notices/server_notices_manager.py
@@ -46,7 +46,7 @@ class ServerNoticesManager(object):
         return self._config.server_notices_mxid is not None
 
     @defer.inlineCallbacks
-    def send_notice(self, user_id, event_content):
+    def send_notice(self, user_id, event_content, type):
         """Send a notice to the given user
 
         Creates the server notices room, if none exists.
@@ -67,7 +67,7 @@ class ServerNoticesManager(object):
 
         yield self._event_creation_handler.create_and_send_nonmember_event(
             requester, {
-                "type": EventTypes.Message,
+                "type": type,
                 "room_id": room_id,
                 "sender": system_mxid,
                 "content": event_content,