mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Fix ghost notifications on closed DMs.
Fix link warning not closing on open.
This commit is contained in:
@@ -244,10 +244,11 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
|
||||
homeUnread = "unread";
|
||||
alertCount += x.alertCount ?? 0;
|
||||
}
|
||||
|
||||
if (
|
||||
x.channel?.channel_type === "DirectMessage" &&
|
||||
x.unread &&
|
||||
x.unread.length > 0
|
||||
x.channel.active &&
|
||||
x.unread
|
||||
)
|
||||
alertCount++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user