TF-2280 Fix mark as read mailbox when token expired on mobile
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit caab5a896875168f2d98c249207eb3eb537c58ec)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
|
||||
import 'package:get/get.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/account_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/encryption_key_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/caching/clients/token_oidc_cache_client.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/local/account_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/local/encryption_key_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/features/login/data/local/token_oidc_cache_manager.dart';
|
||||
import 'package:tmail_ui_user/main/bindings/network/binding_tag.dart';
|
||||
|
||||
class LocalIsolateBindings extends Bindings {
|
||||
|
||||
@override
|
||||
void dependencies() {
|
||||
_bindingCaching();
|
||||
}
|
||||
|
||||
void _bindingCaching() {
|
||||
Get.put(TokenOidcCacheClient(), tag: BindingTag.isolateTag);
|
||||
Get.put(TokenOidcCacheManager(
|
||||
Get.find<TokenOidcCacheClient>(tag: BindingTag.isolateTag)),
|
||||
tag: BindingTag.isolateTag
|
||||
);
|
||||
Get.put(AccountCacheClient(), tag: BindingTag.isolateTag);
|
||||
Get.put(AccountCacheManager(
|
||||
Get.find<AccountCacheClient>(tag: BindingTag.isolateTag)),
|
||||
tag: BindingTag.isolateTag
|
||||
);
|
||||
Get.put(EncryptionKeyCacheClient(), tag: BindingTag.isolateTag);
|
||||
Get.put(EncryptionKeyCacheManager(
|
||||
Get.find<EncryptionKeyCacheClient>(tag: BindingTag.isolateTag)),
|
||||
tag: BindingTag.isolateTag
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user