Domain and User disk usage not updating after mail account or domain deleted

Hi all. I’ve noticed a little bug in Hestia 1.1.1, with a simple fix.
If a user deletes a mail account and goes back to the mail domains list, the disk usage does not reflect the removal of that account’s storage—nor does the Admin list of users.
And if a user deletes an entire mail domain, the disk usage for that user in the Admin list of users does not reflect the removal of all the accounts in the domain that was removed.

To fix this I simply did the following:

In “bin/v-delete-mail-account”, add the following line just after the “update_object_value” line before “# Logging” at the bottom:

$BIN/v-update-mail-domain-disk $user $domain

In “bin/v-delete-mail-domain”, add the following line just after the “decrease_user_value” line before “# Logging” at the bottom:

$BIN/v-update-user-disk $user

Hi @fluidmindorg

Thanks for your input, I’m going to check this.