File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const SELECTOR_CHANNELS_UNREAD = '.p-channel_sidebar__channel--unread:not(.p-cha
41
41
42
42
module . exports = Franz => {
43
43
const getMessages = ( ) => {
44
- const directMessages = document . querySelectorAll ( `${ SELECTOR_CHANNELS_UNREAD } .p-channel_sidebar__badge, .p-channel_sidebar__link--unread` ) . length ;
44
+ const directMessages = document . querySelectorAll ( `${ SELECTOR_CHANNELS_UNREAD } .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"] ` ) . length ;
45
45
const allMessages = document . querySelectorAll ( SELECTOR_CHANNELS_UNREAD ) . length - directMessages ;
46
46
Franz . setBadge ( directMessages , allMessages ) ;
47
47
} ;
@@ -51,4 +51,4 @@ module.exports = Franz => {
51
51
getTeamIcon ( ) ;
52
52
} , 4000 ) ;
53
53
Franz . injectCSS ( _path . default . join ( __dirname , 'service.css' ) ) ;
54
- } ;
54
+ } ;
You can’t perform that action at this time.
0 commit comments