Upgrade hive database version to 14

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-04-04 19:35:16 +07:00
committed by Dat H. Pham
parent 7523ddf07b
commit 51c95bbc69
14 changed files with 152 additions and 63 deletions
@@ -457,11 +457,10 @@ class ThreadController extends BaseController with EmailActionController {
void _handleErrorGetAllOrRefreshChangesEmail(Object error, StackTrace stackTrace) async {
logError('ThreadController::_handleErrorGetAllOrRefreshChangesEmail():Error: $error');
if (error is CannotCalculateChangesMethodResponseException) {
if (_accountId != null && _session != null) {
await cachingManager.clearEmailCacheAndStateCacheByTupleKey(_accountId!, _session!);
} else {
await cachingManager.clearEmailCacheAndAllStateCache();
}
await cachingManager.clearAllEmailAndStateCache(
accountId: _accountId,
userName: _session?.username,
);
_getAllEmailAction();
} else if (error is MethodLevelErrors) {
if (currentOverlayContext != null && error.message != null) {