π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(SessionSettings):fixed-expired-modal-issue
Aswin Asok814d63b85170
diff --git a/web/packages/new/photos/components/sidebar/SessionsSettings.tsx b/web/packages/new/photos/components/sidebar/SessionsSettings.tsxindex 81939af4c8..b144759f5c 100644--- a/web/packages/new/photos/components/sidebar/SessionsSettings.tsx+++ b/web/packages/new/photos/components/sidebar/SessionsSettings.tsx@@ -90,7 +90,11 @@ const SessionsSettingsContents: React.FC<SessionsSettingsContentsProps> = ({} catch (e) {log.error("Failed to fetch active sessions", e);if (isHTTP401Error(e)) {- showMiniDialog(sessionExpiredDialogAttributes(logout));+ // Use setTimeout to show the session expired dialog+ // after the current confirmation dialog closes+ setTimeout(() => {+ showMiniDialog(sessionExpiredDialogAttributes(logout));+ }, 0);} else {const isNetworkError =e instanceof TypeError && e.message === "Failed to fetch";@@ -129,9 +133,15 @@ const SessionsSettingsContents: React.FC<SessionsSettingsContentsProps> = ({} catch (e) {log.error("Failed to terminate session", e);if (isHTTP401Error(e)) {- showMiniDialog(- sessionExpiredDialogAttributes(logout),- );+ // Use setTimeout to show the session expired dialog+ // after the current confirmation dialog closes+ setTimeout(() => {+ showMiniDialog(+ sessionExpiredDialogAttributes(+ logout,+ ),+ );+ }, 0);} else {showMiniDialog({title: t("error"),