mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 00:50:56 -05:00
Show friend request count in indicator. Fixes #96
This commit is contained in:
parent
ca6bdd332e
commit
5bfba2d7cf
1 changed files with 3 additions and 7 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue