This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
/_synapse/admin/v1/send_server_notice may send a notice to a user via a public room #8727
Labels
z-bug
(Deprecated Label)
Docs: https://github.com/matrix-org/synapse/blob/b2b86990705de8a099093ec141ad83e09f182034/docs/admin_api/server_notices.md
The server notice API can be used to send a user a messages from the @ server:example.com user, by specifying a
user_id
as part of the parameters. Synapse will find the first room it shares with the user and post the message. This is fine if the server notices user was only a member of DM rooms, but unfortunately this can not be guaranteed as it may be used to autocreate theauto_join
rooms.We should instead look for 1:1 rooms where the target and server notices user are the only participants.
Offending code:
synapse/synapse/server_notices/server_notices_manager.py
Lines 112 to 130 in c619253
The text was updated successfully, but these errors were encountered: