This repository was archived by the owner on Mar 7, 2018. It is now read-only.
This repository was archived by the owner on Mar 7, 2018. It is now read-only.
Open
Description
With Mattermost 2.0, the unread / mention badge on the dock icon and in the menu bar does not appear. The problem is in mattermost-observer.js:
var list = document.querySelector('.sidebar--left');
In Mattermost 2.0, the sidebar still has the 'sidebar--left' class, but list
is null, so it seems that at DOMContentLoaded the DOM isn't in the state we expect. A simple fix is to listen for changes to 'body' instead of '.sidebar--left'. Do you know a better solution? Is there some React event emitted by Mattermost that we could use instead of DOMContentLoaded?
Metadata
Metadata
Assignees
Labels
No labels