matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.79k stars 2.13k forks source link

Send Welcome Message with Server Notices #8902

Open samuel-p opened 3 years ago

samuel-p commented 3 years ago

It would be awesome to send an automated Welcome Message containing some basic information about the homeserver to new registered users. A nice way to do this would be with the Server Notices feature.

richvdh commented 3 years ago

related: #5501, #1199

anoadragon453 commented 3 years ago

I think this would be a great idea. Note that it can somewhat be replicated using the auto-join feature. You could create a room with a message and then automatically join the user to it upon registration.

However this would be a room that all users join, rather than one that could be personalised to the new user.

...I actually wonder how customisable we'd want to make the message. If it's the same message for all users, this could already be done via an auto-join room. But at the other end of the spectrum, with fully customised messages, you'd probably want a Synapse module with a method that gets called after each new registration.

clokep commented 3 years ago

But at the other end of the spectrum, with fully customised messages, you'd probably want a Synapse module with a method that gets called after each new registration.

A template that is given information about the user might work as well.

localguru commented 3 years ago

This would be a great feature to give users, for example, a link to their own docu or FAQ where common support requests are dealt with. This would save a hotline a lot of work.

LutzLange commented 1 year ago

I was imagining this as something like when you open a connection to an IRC server. The IRC server will display a welcome message including general info on what it allowed, what is not allowed and so on.

I would like to be able to point to a Getting Started Guide that explains general usage as well as the why and how to backup keys.

gabrc52 commented 1 year ago

mozilla.org seems to do this already. Not sure where their code is

ThoreKr commented 1 year ago

I think this would be a great idea. Note that it can somewhat be replicated using the auto-join feature. You could create a room with a message and then automatically join the user to it upon registration.

In theory this sounds great however it turned it to be a rather impractical solution, as this rooom is mostly flooded with join/leave notifications as accounts go through their lifecycle. I've neither found a way to hide these for all users by default nor are pinned messages really helpful here, given their abandoned state of implementation and the need for users to actively go look for them.

gabrc52 commented 1 year ago

A module that could do this could look like this:

https://gist.github.com/gabrc52/b4bf85080bebd38dfa700fc19f79c04b

Note that I haven't directly tried running this code