mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 16:40:58 -05:00
Don't show server mark as read on channels.
This commit is contained in:
parent
4f1ba8942f
commit
ef1eb74486
1 changed files with 12 additions and 12 deletions
|
@ -559,18 +559,18 @@ function ContextMenus(props: Props) {
|
|||
: 0) || 0;
|
||||
const userPermissions = (user ? user.permission : 0) || 0;
|
||||
|
||||
if (channel && unread) {
|
||||
generateAction({ action: "mark_as_read", channel });
|
||||
}
|
||||
|
||||
if (server && unread) {
|
||||
generateAction(
|
||||
{
|
||||
action: "mark_server_as_read",
|
||||
server,
|
||||
},
|
||||
"mark_as_read",
|
||||
);
|
||||
if (unread) {
|
||||
if (channel) {
|
||||
generateAction({ action: "mark_as_read", channel });
|
||||
} else if (server) {
|
||||
generateAction(
|
||||
{
|
||||
action: "mark_server_as_read",
|
||||
server,
|
||||
},
|
||||
"mark_as_read",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (contextualChannel) {
|
||||
|
|
Loading…
Reference in a new issue