summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2020-11-11 14:23:16 +0000
committerGitHub <noreply@github.com>2020-11-11 14:23:16 +0000
commit89700dfb8c2fbf375d12edbde01429b4e6bfd884 (patch)
tree17e32ff26b8ec5036f4cbe4e1fea5b3fe74ddb02 /synapse
parentBetter error message when a remote resource uses invalid Content-Type (#8719) (diff)
downloadsynapse-89700dfb8c2fbf375d12edbde01429b4e6bfd884.tar.xz
Check support room has only two users before sending a notice (#8728)
* Check support room has only two users

* Create 8728.bugfix

* Update synapse/server_notices/server_notices_manager.py

Co-authored-by: Erik Johnston <erik@matrix.org>

Co-authored-by: Erik Johnston <erik@matrix.org>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/server_notices/server_notices_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/server_notices/server_notices_manager.py b/synapse/server_notices/server_notices_manager.py
index 0422d4c7ce..d464c75c03 100644
--- a/synapse/server_notices/server_notices_manager.py
+++ b/synapse/server_notices/server_notices_manager.py
@@ -119,7 +119,7 @@ class ServerNoticesManager:
             # manages to invite the system user to a room, that doesn't make it
             # the server notices room.
             user_ids = await self._store.get_users_in_room(room.room_id)
-            if self.server_notices_mxid in user_ids:
+            if len(user_ids) <= 2 and self.server_notices_mxid in user_ids:
                 # we found a room which our user shares with the system notice
                 # user
                 logger.info(