Show friend request count in indicator. Fixes #96

This commit is contained in:
Paul 2021-08-17 20:05:21 +01:00
parent ca6bdd332e
commit 5bfba2d7cf

View file

@ -251,13 +251,9 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
}
}
if (
[...client.users.values()].find(
alertCount += [...client.users.values()].filter(
(x) => x.relationship === RelationshipStatus.Incoming,
)
) {
alertCount++;
}
).length;
if (alertCount > 0) homeUnread = "mention";
const homeActive =