Fix browser tab highlight

This commit is contained in:
Alexander Zinchuk 2021-04-22 12:09:19 +03:00
parent 5b8c34fc9b
commit d50bbcf8ef

View File

@ -115,6 +115,7 @@ const Main: FC<StateProps & DispatchProps> = ({
const initialUnread = selectCountNotMutedUnread(getGlobal());
let index = 0;
clearInterval(notificationInterval);
notificationInterval = window.setInterval(() => {
if (index % 2 === 0) {
const newUnread = selectCountNotMutedUnread(getGlobal()) - initialUnread;