diff options
author | Neil Johnson <neil@matrix.org> | 2019-10-23 10:15:49 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2019-10-23 10:15:49 +0100 |
commit | 84ca716c6b824baa421f4aabe2f32f7a689c58ed (patch) | |
tree | 03557ec01e82f24faa2189588d591acd52a0bf91 | |
parent | isort (diff) | |
download | synapse-84ca716c6b824baa421f4aabe2f32f7a689c58ed.tar.xz |
back ref_events change
-rw-r--r-- | synapse/server_notices/resource_limits_server_notices.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/synapse/server_notices/resource_limits_server_notices.py b/synapse/server_notices/resource_limits_server_notices.py index d288e43bd3..d8baa2c959 100644 --- a/synapse/server_notices/resource_limits_server_notices.py +++ b/synapse/server_notices/resource_limits_server_notices.py @@ -141,9 +141,7 @@ class ResourceLimitsServerNotices(object): ) @defer.inlineCallbacks - def _apply_limit_block_notification( - self, user_id, event_body, event_limit_type, ref_events - ): + def _apply_limit_block_notification(self, user_id, event_body, event_limit_type): """Utility method to apply limit block notifications in the server notices room. @@ -164,7 +162,7 @@ class ResourceLimitsServerNotices(object): user_id, content, EventTypes.Message ) - content = {"pinned": ref_events.append(event.event_id)} + content = {"pinned": [event.event_id]} yield self._server_notices_manager.send_notice( user_id, content, EventTypes.Pinned, "" ) |