Don't show server mark as read on channels.

This commit is contained in:
Paul
2021-08-07 23:04:44 +01:00
parent 4f1ba8942f
commit ef1eb74486

View File

@@ -559,11 +559,10 @@ function ContextMenus(props: Props) {
: 0) || 0; : 0) || 0;
const userPermissions = (user ? user.permission : 0) || 0; const userPermissions = (user ? user.permission : 0) || 0;
if (channel && unread) { if (unread) {
if (channel) {
generateAction({ action: "mark_as_read", channel }); generateAction({ action: "mark_as_read", channel });
} } else if (server) {
if (server && unread) {
generateAction( generateAction(
{ {
action: "mark_server_as_read", action: "mark_server_as_read",
@@ -572,6 +571,7 @@ function ContextMenus(props: Props) {
"mark_as_read", "mark_as_read",
); );
} }
}
if (contextualChannel) { if (contextualChannel) {
if (user && user._id !== userId) { if (user && user._id !== userId) {