Fix channel not marked as unread on notification entry (#7289)

This commit is contained in:
Daniel Espino García
2023-04-18 22:25:04 +02:00
committed by GitHub
parent c3ed9d3a4a
commit 67f1a2f0c9

View File

@@ -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;