From 0a89ac7cf386443e5be31ef75527adb231d607ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Tue, 23 May 2023 17:40:07 +0200 Subject: [PATCH] Fix minor error on marking threads as read (#7355) --- app/init/push_notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init/push_notifications.ts b/app/init/push_notifications.ts index 4dcb2e4ee..c869be891 100644 --- a/app/init/push_notifications.ts +++ b/app/init/push_notifications.ts @@ -90,7 +90,7 @@ class PushNotifications { if (isCRTEnabled && payload.root_id) { const thread = await getThreadById(database, payload.root_id); if (thread?.isFollowing) { - markThreadAsRead(serverUrl, payload.team_id, payload.post_id); + markThreadAsRead(serverUrl, payload.team_id, payload.root_id); } } else { markChannelAsViewed(serverUrl, payload.channel_id);