Fix crash when changing the location of app with disabled sendmail addon

This commit is contained in:
Girish Ramakrishnan
2021-12-06 13:59:00 -08:00
parent a687b7da26
commit cefbe7064f

View File

@@ -1655,7 +1655,7 @@ async function setLocation(app, data, auditSource) {
}
// rename the auto-created mailbox to match the new location
if (app.manifest.addons?.sendmail && app.mailboxName.endsWith('.app')) {
if (app.manifest.addons?.sendmail && app.mailboxName?.endsWith('.app')) {
values.mailboxName = mailboxNameForLocation(values.location, app.manifest);
values.mailboxDomain = values.domain;
}