Do not clear cache if there are no stored filters

This commit is contained in:
Andy Uhnak
2022-03-21 16:08:17 +00:00
parent d32b33ddef
commit 38c8d85800
2 changed files with 6 additions and 0 deletions
@@ -2073,6 +2073,11 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
mxSession.syncFilterId, syncFilter.JSONDictionary);
completion(NO);
}
else if (!mxSession.store.allFilterIds.count)
{
MXLogDebug(@"[MXKAccount] There are no filters stored in this session, proceed as if no /sync was done before");
completion(YES);
}
else
{
// Check the filter is the one previously set