notifications: clear unreads on resubscribe

This commit is contained in:
Liam Fitzgerald 2021-06-21 19:07:37 +10:00
parent 59e51e4165
commit 7047f7fe2a
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -187,7 +187,8 @@ function clearState(state: HarkState): HarkState {
graph: {},
group: {}
},
notificationsCount: 0
notificationsCount: 0,
unreadNotes: {}
};
Object.assign(state, initialState);