From b5ff344b64da1ec87e1f99e29776678f16e3db03 Mon Sep 17 00:00:00 2001 From: Anurag Shivarathri Date: Wed, 22 Jun 2022 23:49:17 +0530 Subject: [PATCH] Mark as unread only if following the thread (#6421) --- app/actions/remote/thread.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/actions/remote/thread.ts b/app/actions/remote/thread.ts index 630cfa538..26bf06ef2 100644 --- a/app/actions/remote/thread.ts +++ b/app/actions/remote/thread.ts @@ -49,7 +49,7 @@ export const fetchAndSwitchToThread = async (serverUrl: string, rootId: string, const post = await getPostById(database, rootId); if (post) { const thread = await getThreadById(database, rootId); - if (thread) { + if (thread?.isFollowing) { const channel = await getChannelById(database, post.channelId); if (channel) { markThreadAsRead(serverUrl, channel.teamId, thread.id);