mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 06:34:40 +03:00
when removing account, remove its data directory instead of leaving it around
recreating the account would resurface the old messages, certainly not what you'ld expect. it's about time to just remove the files. we do ask admins to confirm that when removing through admin interface. it's also in the "mox config account rm" help output now. for issue #162 by RobSlgm with feedback from x8x, thanks!
This commit is contained in:
@ -2194,7 +2194,7 @@ const account = async (name) => {
|
||||
formPassword.reset();
|
||||
}), dom.br(), RoutesEditor('account-specific', transports, config.Routes || [], async (routes) => await client.AccountRoutesSave(name, routes)), dom.br(), dom.h2('Danger'), dom.clickbutton('Remove account', async function click(e) {
|
||||
e.preventDefault();
|
||||
if (!window.confirm('Are you sure you want to remove this account?')) {
|
||||
if (!window.confirm('Are you sure you want to remove this account? All account data, including messages will be removed.')) {
|
||||
return;
|
||||
}
|
||||
await check(e.target, client.AccountRemove(name));
|
||||
|
Reference in New Issue
Block a user