TF-2464 Save AccountId/UserName to cache before setup component dashboard
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 22e67d185fd0ccaec0aa733b9fd08668504d68e2)
This commit is contained in:
+13
-12
@@ -494,14 +494,14 @@ class MailboxDashBoardController extends ReloadableController {
|
|||||||
|
|
||||||
void _handleSession(Session session) {
|
void _handleSession(Session session) {
|
||||||
log('MailboxDashBoardController::_handleSession:');
|
log('MailboxDashBoardController::_handleSession:');
|
||||||
_setUpComponentsFromSession(session);
|
|
||||||
|
|
||||||
updateAuthenticationAccount(
|
updateAuthenticationAccount(
|
||||||
sessionCurrent!,
|
session,
|
||||||
accountId.value!,
|
session.personalAccount.accountId,
|
||||||
sessionCurrent!.username
|
session.username
|
||||||
);
|
);
|
||||||
|
|
||||||
|
_setUpComponentsFromSession(session);
|
||||||
|
|
||||||
if (PlatformInfo.isMobile && !_notificationManager.isNotificationClickedOnTerminate) {
|
if (PlatformInfo.isMobile && !_notificationManager.isNotificationClickedOnTerminate) {
|
||||||
_handleClickLocalNotificationOnTerminated();
|
_handleClickLocalNotificationOnTerminated();
|
||||||
} else {
|
} else {
|
||||||
@@ -510,21 +510,22 @@ class MailboxDashBoardController extends ReloadableController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _setUpComponentsFromSession(Session session) {
|
void _setUpComponentsFromSession(Session session) {
|
||||||
|
final currentAccountId = session.personalAccount.accountId;
|
||||||
sessionCurrent = session;
|
sessionCurrent = session;
|
||||||
accountId.value = sessionCurrent!.personalAccount.accountId;
|
accountId.value = currentAccountId;
|
||||||
userProfile.value = UserProfile(sessionCurrent!.username.value);
|
userProfile.value = UserProfile(session.username.value);
|
||||||
|
|
||||||
injectAutoCompleteBindings(sessionCurrent, accountId.value);
|
injectAutoCompleteBindings(session, currentAccountId);
|
||||||
injectRuleFilterBindings(sessionCurrent, accountId.value);
|
injectRuleFilterBindings(session, currentAccountId);
|
||||||
injectVacationBindings(sessionCurrent, accountId.value);
|
injectVacationBindings(session, currentAccountId);
|
||||||
injectFCMBindings(sessionCurrent, accountId.value);
|
injectFCMBindings(session, currentAccountId);
|
||||||
|
|
||||||
_getVacationResponse();
|
_getVacationResponse();
|
||||||
spamReportController.getSpamReportStateAction();
|
spamReportController.getSpamReportStateAction();
|
||||||
|
|
||||||
if (PlatformInfo.isMobile) {
|
if (PlatformInfo.isMobile) {
|
||||||
getAllSendingEmails();
|
getAllSendingEmails();
|
||||||
_storeSessionAction(sessionCurrent!);
|
_storeSessionAction(session);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user