forked from abner/for-legacy-web
Show friend request count in indicator. Fixes #96
parent
ca6bdd332e
commit
5bfba2d7cf
|
|
@ -251,13 +251,9 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
|
|||
}
|
||||
}
|
||||
|
||||
if (
|
||||
[...client.users.values()].find(
|
||||
(x) => x.relationship === RelationshipStatus.Incoming,
|
||||
)
|
||||
) {
|
||||
alertCount++;
|
||||
}
|
||||
alertCount += [...client.users.values()].filter(
|
||||
(x) => x.relationship === RelationshipStatus.Incoming,
|
||||
).length;
|
||||
|
||||
if (alertCount > 0) homeUnread = "mention";
|
||||
const homeActive =
|
||||
|
|
|
|||
Loading…
Reference in New Issue