Show friend requests on top-right avatar.

This commit is contained in:
Paul
2021-07-25 12:50:34 +01:00
parent e12ebc9b0d
commit fd03c64d92
2 changed files with 9 additions and 12 deletions

View File

@@ -66,16 +66,7 @@ function HomeSidebar(props: Props) {
.filter((x) => x.channel_type !== "SavedMessages")
.map((x) => mapChannelWithUnread(x, props.unreads));
const users = useUsers(
(
channelsArr as (
| Channels.DirectMessageChannel
| Channels.GroupChannel
)[]
).reduce((prev: any, cur) => [...prev, ...cur.recipients], []),
ctx,
);
const users = useUsers(undefined, ctx);
channelsArr.sort((b, a) => a.timestamp.localeCompare(b.timestamp));
return (