mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-11-20 06:49:52 +01:00
Fix notifications not being sent on decryption correction
This commit is contained in:
parent
c110e64341
commit
80b8526698
1 changed files with 8 additions and 1 deletions
|
@ -204,7 +204,14 @@ function MessageNotifications() {
|
|||
const cachedUnreadInfo = unreadCacheRef.current.get(room.roomId);
|
||||
unreadCacheRef.current.set(room.roomId, unreadInfo);
|
||||
|
||||
if (unreadInfo.total === 0) return;
|
||||
if (unreadInfo.total === 0) {
|
||||
const handleUnreadEvent: RoomEventHandlerMap[RoomEvent.UnreadNotifications] = () => {
|
||||
handleTimelineEvent(mEvent, room, toStartOfTimeline, removed, data);
|
||||
room.removeListener(RoomEvent.UnreadNotifications, handleUnreadEvent);
|
||||
};
|
||||
room.on(RoomEvent.UnreadNotifications, handleUnreadEvent);
|
||||
return;
|
||||
}
|
||||
if (
|
||||
cachedUnreadInfo &&
|
||||
unreadEqual(unreadInfoToUnread(cachedUnreadInfo), unreadInfoToUnread(unreadInfo))
|
||||
|
|
Loading…
Reference in a new issue