Skip to content

Commit 189c3d5

Browse files
committed
fix: move manageFavicon out of hook
1 parent 2f8213e commit 189c3d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/client/hooks/useUnread.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Rooms } from '../../app/models/client';
77

88
const query = { open: { $ne: false }, hideUnreadStatus: { $ne: true }, archived: { $ne: true } };
99
const options = { fields: { unread: 1, alert: 1, rid: 1, t: 1, name: 1, ls: 1, unreadAlert: 1, fname: 1, prid: 1 } };
10+
const updateFavicon = manageFavicon();
1011

1112
export const useUnread = () => {
1213
const unreadAlertEnabled = useUserPreference('unreadAlert');
@@ -55,7 +56,6 @@ export const useUnread = () => {
5556
}, [setUnread, unread, subscriptions, unreadAlertEnabled, fireEventUnreadChangedBySubscription, fireEventUnreadChanged]);
5657

5758
useEffect(() => {
58-
const updateFavicon = manageFavicon();
5959
updateFavicon(unread);
6060
}, [unread]);
6161
};

0 commit comments

Comments
 (0)