mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Context Menus: Add "mark as unread" back.
Servers: Fix various issues relating to voice channels.
This commit is contained in:
@@ -47,7 +47,7 @@ function ServerSidebar(props: Props & WithDispatcher) {
|
||||
if (!server) return <Redirect to="/" />;
|
||||
|
||||
const channels = (useChannels(server.channels, ctx)
|
||||
.filter(entry => typeof entry !== 'undefined') as Readonly<Channels.TextChannel>[])
|
||||
.filter(entry => typeof entry !== 'undefined') as Readonly<Channels.TextChannel | Channels.VoiceChannel>[])
|
||||
.map(x => mapChannelWithUnread(x, props.unreads));
|
||||
|
||||
const channel = channels.find(x => x?._id === channel_id);
|
||||
|
||||
Reference in New Issue
Block a user