mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-09 02:05:28 +00:00
Show friend request count in indicator. Fixes #96
This commit is contained in:
@@ -251,13 +251,9 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
alertCount += [...client.users.values()].filter(
|
||||||
[...client.users.values()].find(
|
(x) => x.relationship === RelationshipStatus.Incoming,
|
||||||
(x) => x.relationship === RelationshipStatus.Incoming,
|
).length;
|
||||||
)
|
|
||||||
) {
|
|
||||||
alertCount++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (alertCount > 0) homeUnread = "mention";
|
if (alertCount > 0) homeUnread = "mention";
|
||||||
const homeActive =
|
const homeActive =
|
||||||
|
|||||||
Reference in New Issue
Block a user