Not sure if this is a bug or intentional and I should file a feature request. We use mattermost-server with custom frontend and when user creates channel, we add all team members to it and want to refresh the UI for the others so they see the new channel automatically. The issue is that the websocket events are sent to recipients which do not benefit much from it.
For channel_created event the recipient is the user who created the channel https://github.com/mattermost/mattermost-server/blob/master/app/channel.go#L156. I would expect this to go to the team under which the channel was created to show a notification about new channel to all the team members.
Event user_added on the other hand goes only to the channel in question https://github.com/mattermost/mattermost-server/blob/master/app/channel.go#L831 but not to the user being added to the channel, so again there is no notification that the user added to channel can act upon.
So is this expected behaviour? Are there some other events I could use to reliably notify user about new channel in his team or that he was added to channel?