TF-2310 Don't use Hive.boxExists() to avoid creating a database without an object store in hive on some browsers (Safari/Firefox)

This commit is contained in:
dab246
2024-04-09 10:26:53 +07:00
committed by Dat H. Pham
parent 38a0b972b8
commit 779bd224b1
8 changed files with 4 additions and 34 deletions
@@ -41,8 +41,7 @@ class MailboxCacheManager {
await _mailboxCacheClient.updateMultipleItem(updatedCacheMailboxes);
}
final mailboxCacheExist = await _mailboxCacheClient.isExistTable();
if (destroyed?.isNotEmpty == true && mailboxCacheExist) {
if (destroyed?.isNotEmpty == true) {
final destroyedCacheMailboxes = destroyed!.toCacheKeyList(accountId, userName);
await _mailboxCacheClient.deleteMultipleItem(destroyedCacheMailboxes);
}