From e72a142974dc8501211f30180e6167ffdb8ea6ea Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 3 Feb 2023 11:56:48 +0200 Subject: [PATCH] Fix (#7082) (#7083) (cherry picked from commit fab5665773c62de046db7490a8660658b26febf1) Co-authored-by: Anurag Shivarathri --- app/actions/remote/thread.ts | 2 +- app/screens/global_threads/threads_list/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/actions/remote/thread.ts b/app/actions/remote/thread.ts index f4e91b0de..e25a9f131 100644 --- a/app/actions/remote/thread.ts +++ b/app/actions/remote/thread.ts @@ -360,7 +360,7 @@ export const syncTeamThreads = async (serverUrl: string, teamId: string, prepare const allNewThreads = await fetchThreads( serverUrl, teamId, - {deleted: true, since: syncData.latest}, + {deleted: true, since: syncData.latest + 1}, ); if (allNewThreads.error) { return {error: allNewThreads.error}; diff --git a/app/screens/global_threads/threads_list/index.ts b/app/screens/global_threads/threads_list/index.ts index 13b4a127f..3aadd419d 100644 --- a/app/screens/global_threads/threads_list/index.ts +++ b/app/screens/global_threads/threads_list/index.ts @@ -30,7 +30,7 @@ const enhanced = withObservables(['tab', 'teamId', 'forceQueryAfterAppState'], ( const teamThreadsSyncObserver = queryTeamThreadsSync(database, teamId).observeWithColumns(['earliest']); return { - unreadsCount: queryThreadsInTeam(database, teamId, true).observeCount(false), + unreadsCount: queryThreadsInTeam(database, teamId, true, true, true).observeCount(false), teammateNameDisplay: observeTeammateNameDisplay(database), threads: teamThreadsSyncObserver.pipe( switchMap((teamThreadsSync) => {