app: clear mailbox fields when sendmail is removed with an update
This commit is contained in:
@@ -1759,9 +1759,9 @@ async function updateApp(app, data, auditSource) {
|
||||
updateConfig.memoryLimit = updateConfig.manifest.memoryLimit;
|
||||
}
|
||||
|
||||
if (!app.manifest.addons?.sendmail) { // clear if the update removed addon
|
||||
if (!manifest.addons?.sendmail) { // clear if the update removed addon
|
||||
values.mailboxName = values.mailboxDomain = null;
|
||||
} else if (!app.mailboxName || app.mailboxName.endsWith('.app')) { // allocate since restore added the addon
|
||||
} else if (!app.mailboxName || app.mailboxName.endsWith('.app')) { // allocate since update added the addon
|
||||
values.mailboxName = mailboxNameForLocation(app.location, manifest);
|
||||
values.mailboxDomain = app.domain;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user