forked from Ivasoft/mattermost-mobile
(cherry picked from commit fab5665773)
Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user