notifications: clear email status when message is empty

This commit is contained in:
Girish Ramakrishnan
2023-04-04 11:21:04 +02:00
parent ca2ebac694
commit f40c4b9b2c
3 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -629,7 +629,7 @@ async function checkConfiguration() {
if (markdownMessage) markdownMessage += 'Email Status is checked every 30 minutes.\n See the [troubleshooting docs](https://docs.cloudron.io/troubleshooting/#mail-dns) for more information.\n';
return markdownMessage; // empty message means all status checks succeeded
return { status: markdownMessage === '', message: markdownMessage };
}
async function createMailConfig(mailFqdn) {