[MM-36459] Drag and drop for dropdown (#1651)
* [MM-36459] Drag and drop for dropdown * CircleCI build * Drag and drop feedback from UX * PR feedback * PR feedback
This commit is contained in:
@@ -58,6 +58,13 @@ export const updateUnreads = (serverName: string, unreads: boolean) => {
|
||||
emitMentions(serverName);
|
||||
};
|
||||
|
||||
export const updateBadge = () => {
|
||||
const expired = anyExpired();
|
||||
const mentions = totalMentions();
|
||||
const unreads = anyUnreads();
|
||||
emitBadge(expired, mentions, unreads);
|
||||
};
|
||||
|
||||
export const getUnreads = (serverName: string) => {
|
||||
return status.unreads.get(serverName) || false;
|
||||
};
|
||||
|
Reference in New Issue
Block a user