mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 10:20:59 -05:00
Fix ghost notifications on closed DMs.
Fix link warning not closing on open.
This commit is contained in:
parent
44fdee1214
commit
0ca99ddceb
2 changed files with 7 additions and 3 deletions
|
@ -244,10 +244,11 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
|
||||||
homeUnread = "unread";
|
homeUnread = "unread";
|
||||||
alertCount += x.alertCount ?? 0;
|
alertCount += x.alertCount ?? 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
x.channel?.channel_type === "DirectMessage" &&
|
x.channel?.channel_type === "DirectMessage" &&
|
||||||
x.unread &&
|
x.channel.active &&
|
||||||
x.unread.length > 0
|
x.unread
|
||||||
)
|
)
|
||||||
alertCount++;
|
alertCount++;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,10 @@ export function ExternalLinkModal({ onClose, link }: Props) {
|
||||||
title={<Text id={"app.special.modals.external_links.title"} />}
|
title={<Text id={"app.special.modals.external_links.title"} />}
|
||||||
actions={[
|
actions={[
|
||||||
{
|
{
|
||||||
onClick: ()=>{window.open(link, "_blank");},
|
onClick: () => {
|
||||||
|
window.open(link, "_blank");
|
||||||
|
onClose();
|
||||||
|
},
|
||||||
confirmation: true,
|
confirmation: true,
|
||||||
contrast: true,
|
contrast: true,
|
||||||
accent: true,
|
accent: true,
|
||||||
|
|
Loading…
Reference in a new issue