mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:06:02 -04:00
backout ability to pass in event type to server notices
This commit is contained in:
parent
9b75c78b4d
commit
e2c9fe0a6a
3 changed files with 5 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue