Fix unreads and mark as read.

This commit is contained in:
Paul
2021-09-14 21:09:42 +01:00
parent 0304be4221
commit 8b4b6832e9
4 changed files with 11 additions and 14 deletions

View File

@@ -170,18 +170,13 @@ function ContextMenus(props: Props) {
)
return;
const message =
typeof data.channel.last_message === "string"
? data.channel.last_message
: data.channel.last_message!._id;
dispatch({
type: "UNREADS_MARK_READ",
channel: data.channel._id,
message,
message: data.channel.last_message_id!,
});
data.channel.ack(message);
data.channel.ack(undefined, true);
}
break;
case "mark_server_as_read":