Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display an info message to all users easily #26600

Closed
estellecomment opened this issue Nov 16, 2023 · 2 comments
Closed

Display an info message to all users easily #26600

estellecomment opened this issue Nov 16, 2023 · 2 comments
Labels
T-Enhancement X-Needs-Product More input needed from the Product team

Comments

@estellecomment
Copy link

Your use case

What would you like to do?

Spread important news to all users. In our current case, a planned service interruption. It could also be for less important news (community events, "did you know" tips, "answer this user study survey", etc)

Why would you like to do it?

We want everyone to know.

How would you like to achieve it?

Adding it to the config.json would be an easy way, like user_notice. (user_notice is not quite what we want, see below)
This means the webapp needs to poll for a change of config and display the message.

We could consider also a bot system which opens a DM with each user. (inviting all users to a single room would probably not be good performance-wise for us, though I'm not the expert on this)

Or something else !

Have you considered any alternatives?

Currently we have user_notice in config.json, which does the job but only partially : when a user_notice is pushed to prod, it will only be displayed to the user when the page is reloaded or reopened. Because before that, the new config is not seen by the client.
Some users will just leave the tab open and never reload. So they will never know about the service interruption in our case.

So we need to bump the version, in order for the updateToast to be displayed, which will cause the page reload and the user_notice to be displayed. (and still, if users refuse the new version, they won't see the user_notice.)

Having to bump the version is a lot of overhead, and not very flexible : beta users have a different version than normal users, so we have to change everyone's version, so the version numbers get out of order or weird, ... messy. Also, the info may not be related to the code for the version at all (it's accidental that the service interruption happens during version X)

Conclusion : user_notice is a good way to display info about a new version, but not a very good way to display an info to all users.

Additional context

No response

@t3chguy
Copy link
Member

t3chguy commented Nov 16, 2023

Sounds like a job for https://matrix-org.github.io/synapse/latest/server_notices.html

@t3chguy t3chguy added the X-Needs-Product More input needed from the Product team label Nov 16, 2023
@estellecomment
Copy link
Author

Thanks for the info !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement X-Needs-Product More input needed from the Product team
Projects
None yet
Development

No branches or pull requests

2 participants