mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Don't show server mark as read on channels.
This commit is contained in:
@@ -559,18 +559,18 @@ 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) {
|
||||||
generateAction({ action: "mark_as_read", channel });
|
if (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",
|
server,
|
||||||
server,
|
},
|
||||||
},
|
"mark_as_read",
|
||||||
"mark_as_read",
|
);
|
||||||
);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contextualChannel) {
|
if (contextualChannel) {
|
||||||
|
|||||||
Reference in New Issue
Block a user