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:
dab246
2023-10-27 20:46:17 +07:00
committed by Dat H. Pham
parent e956250e04
commit ad5dff4ac8
17 changed files with 237 additions and 82 deletions
+3 -3
View File
@@ -30,9 +30,9 @@ BuildContext? get currentContext => Get.context;
BuildContext? get currentOverlayContext => Get.overlayContext;
T? getBinding<T>() {
if (Get.isRegistered<T>()) {
return Get.find<T>();
T? getBinding<T>({String? tag}) {
if (Get.isRegistered<T>(tag: tag)) {
return Get.find<T>(tag: tag);
} else {
return null;
}