TF-2384 Store data to keychain when save new Account

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 4d84a3354927d1c0becaf0e8e6d7cc8c54721f58)
This commit is contained in:
dab246
2023-12-24 19:24:33 +07:00
committed by Dat H. Pham
parent 940cc2f315
commit a2a1f8246f
22 changed files with 211 additions and 238 deletions
@@ -480,9 +480,9 @@ class MailboxDashBoardController extends ReloadableController {
}
@override
void injectFCMBindings(Session? session, AccountId? accountId) async {
Future<void> injectFCMBindings(Session? session, AccountId? accountId) async {
try {
super.injectFCMBindings(session, accountId);
await super.injectFCMBindings(session, accountId);
await LocalNotificationManager.instance.recreateStreamController();
_registerLocalNotificationStreamListener();
} catch (e) {
@@ -1674,7 +1674,6 @@ class MailboxDashBoardController extends ReloadableController {
}
void _handleMessageFromNotification(String? payload, {bool onForeground = true}) async {
await LocalNotificationManager.instance.removeNotificationBadgeForIOS();
log('MailboxDashBoardController::_handleMessageFromNotification():payload: $payload');
if (payload == null || payload.isEmpty) {
dispatchRoute(DashboardRoutes.thread);