Fallback to email for mailbox owner if no username nor display name is set

This commit is contained in:
Johannes Zellner
2025-12-16 08:38:05 +01:00
parent 49fc63d422
commit bb96b96e24
+1 -1
View File
@@ -185,7 +185,7 @@ async function refreshDomain(domain) {
m.owner = users.value.find(u => u.id === m.ownerId) || null;
if (!m.owner) m.owner = groups.value.find(g => g.id === m.ownerId) || null;
m.ownerDisplayName = m.owner ? (m.owner.username || m.owner.name) : '';
m.ownerDisplayName = m.owner ? (m.owner.username || m.owner.name || m.owner.email) : '';
cachedMailboxUsage.value[m.fullName] = cachedMailboxUsage.value[m.fullName] || {};
// update in-place or add