forked from abner/for-legacy-web
Servers are also marked as read when joining them. You can now also mark DMs as read.
This commit is contained in:
@@ -114,7 +114,7 @@ export const UserButton = observer((props: UserProps) => {
|
||||
});
|
||||
|
||||
type ChannelProps = CommonProps & {
|
||||
channel: Channel & { unread?: string };
|
||||
channel: Channel;
|
||||
user?: User;
|
||||
compact?: boolean;
|
||||
};
|
||||
@@ -140,7 +140,7 @@ export const ChannelButton = observer((props: ChannelProps) => {
|
||||
className={classNames(styles.item, { [styles.compact]: compact })}
|
||||
onContextMenu={attachContextMenu("Menu", {
|
||||
channel: channel._id,
|
||||
unread: typeof channel.unread !== "undefined",
|
||||
unread: typeof alert !== "undefined",
|
||||
})}>
|
||||
<ChannelIcon
|
||||
className={styles.avatar}
|
||||
|
||||
@@ -288,6 +288,7 @@ export const ServerListSidebar = observer(({ unreads, lastOpened }: Props) => {
|
||||
active={active}
|
||||
onContextMenu={attachContextMenu("Menu", {
|
||||
server: entry.server._id,
|
||||
unread: entry.unread,
|
||||
})}>
|
||||
<Swoosh />
|
||||
<Tooltip
|
||||
|
||||
Reference in New Issue
Block a user