TF-2305 Session::getOwnEmailAddress method to fetch the user email address from urn:ietf:params:jmap:principals imip mailto property if not present in the session username, which is the case for Cyrus

This commit is contained in:
Florent Azavant
2025-01-24 11:49:38 +01:00
committed by Dat H. Pham
parent 327af38fb0
commit 6720709a2e
23 changed files with 212 additions and 58 deletions
+1 -1
View File
@@ -451,7 +451,7 @@ abstract class BaseController extends GetxController
if (PlatformInfo.isMobile) {
showLogoutConfirmDialog(
context: context,
username: session?.username.value ?? '',
userAddress: session?.getOwnEmailAddress() ?? '',
onConfirmAction: () => _handleLogoutAction(session, accountId),
);
} else {