Enable Notifications when Mattermost is not Visible to the User
If a chat is selected when the desktop app is not visible or minimized, the user will not receive notifications for any new messages sent within the chat.
For example, If I am talking to Bob, then I shrink the desktop app with his name still selected in the left hand pane, or I open a new window and cannot see the Mattermost app, it wont notify me of a new message from Bob unless I make sure to click on a different chat window with someone else prior to moving my attention away from Mattermost.
I understand we wouldnt want notifications while we are in an active conversation, so I was thinking adding functionality of knowing when the Mattermost is visible or not to the user for sending notifications on chats that are open.
The idea would be similar to this page visibility api: https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API