diff options
author | Neil Johnson <neil@matrix.org> | 2018-08-14 11:20:41 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-08-14 11:20:41 +0100 |
commit | 9b75c78b4df276fe40d3f1b92a57481c3e970886 (patch) | |
tree | 2fb6e80dd32ffc0068748fa138bf368572f3793c /synapse/server_notices/server_notices_manager.py | |
parent | fix typo (diff) | |
download | synapse-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.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 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, |