Skip to content

Commit

Permalink
Do not resume export for temporary sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Dec 23, 2024
1 parent 144c51d commit bcde22f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/mail-app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { disableErrorHandlingDuringLogout, handleUncaughtError } from "../common
import { AppType } from "../common/misc/ClientConstants.js"
import { ContactModel } from "../common/contactsFunctionality/ContactModel.js"
import { CacheMode } from "../common/api/worker/rest/EntityRestClient"
import { SessionType } from "../common/api/common/SessionType.js"

assertMainOrNodeBoot()
bootFinished()
Expand Down Expand Up @@ -190,9 +191,12 @@ import("./translations/en.js")
mailLocator.logins.addPostLoginAction(async () => {
return {
onPartialLoginSuccess: async () => {},
onFullLoginSuccess: async () => {
const controller = await mailLocator.mailExportController()
controller.resumeIfNeeded()
onFullLoginSuccess: async (event) => {
// not a temporary aka signup login
if (event.sessionType === SessionType.Persistent) {
const controller = await mailLocator.mailExportController()
controller.resumeIfNeeded()
}
},
}
})
Expand Down

0 comments on commit bcde22f

Please sign in to comment.