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.
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?
I tried it with 5.5.1 version and also latest master. The relevant code for sending user_added is here https://github.com/mattermost/mattermost-server/blame/ce2c7110d3db836790f90fc63968b68f14a9f516/app/channel.go#L831 and based on blame it seems it did not change in 2 years and as you can see only ‘channel.Id’ is filled there for the event broadcast. I did not find any other usage of the WEBSOCKET_EVENT_USER_ADDED event in the code. Is it possible there is some other event I should be looking for?