From 67f1a2f0c9e167929404d5dc4df3e8dff7ef52e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Tue, 18 Apr 2023 22:25:04 +0200 Subject: [PATCH] Fix channel not marked as unread on notification entry (#7289) --- app/actions/websocket/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/actions/websocket/posts.ts b/app/actions/websocket/posts.ts index 6a3773b33..710f190fc 100644 --- a/app/actions/websocket/posts.ts +++ b/app/actions/websocket/posts.ts @@ -44,7 +44,7 @@ export async function handleNewPostEvent(serverUrl: string, msg: WebSocketMessag } const currentUserId = await getCurrentUserId(database); - const existing = await getPostById(database, post.pending_post_id); + const existing = await getPostById(database, post.pending_post_id) || await getPostById(database, post.id); if (existing) { return;