mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-26 00:50:56 -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,11 +559,10 @@ function ContextMenus(props: Props) {
|
|||
: 0) || 0;
|
||||
const userPermissions = (user ? user.permission : 0) || 0;
|
||||
|
||||
if (channel && unread) {
|
||||
if (unread) {
|
||||
if (channel) {
|
||||
generateAction({ action: "mark_as_read", channel });
|
||||
}
|
||||
|
||||
if (server && unread) {
|
||||
} else if (server) {
|
||||
generateAction(
|
||||
{
|
||||
action: "mark_server_as_read",
|
||||
|
@ -572,6 +571,7 @@ function ContextMenus(props: Props) {
|
|||
"mark_as_read",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (contextualChannel) {
|
||||
if (user && user._id !== userId) {
|
||||
|
|
Loading…
Reference in a new issue