diff options
author | Neil Johnson <neil@matrix.org> | 2018-08-14 13:32:56 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-08-14 13:32:56 +0100 |
commit | e2c9fe0a6a6dbe4f81402b79b6605e17fb05e5d4 (patch) | |
tree | bad367e8638e754765f4c817770ab06beb8493b3 /synapse/server_notices/server_notices_manager.py | |
parent | support server notice state events for resource limits (diff) | |
download | synapse-e2c9fe0a6a6dbe4f81402b79b6605e17fb05e5d4.tar.xz |
backout ability to pass in event type to server notices
Diffstat (limited to 'synapse/server_notices/server_notices_manager.py')
-rw-r--r-- | synapse/server_notices/server_notices_manager.py | 4 |
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 4806977a89..a26deace53 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, type): + def send_notice(self, user_id, event_content): """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": type, + "type": EventTypes.Message, "room_id": room_id, "sender": system_mxid, "content": event_content, |