diff --git a/index.html b/index.html index 54cd6a8..5bedb78 100644 --- a/index.html +++ b/index.html @@ -2332,16 +2332,15 @@ const render = { mailCard(floID, ref, subject, timestamp, content, markUnread) { let mailSummery = content.split(' ').splice(16).join(' ') - let contact; + let contact = floGlobals.contacts[floID] || floID if (Array.isArray(floID)) { // find known floID name contact = floID.find(id => floGlobals.contacts[id]) - contact = contact || `${floID[0].substring(12)}...`; + contact = floGlobals.contacts[contact] || `${floID[0].substring(12)}...`; if (floID.length > 1) contact = `${contact} & ${floID.length - 1} others(s)` floID = floID.join(', ') - } else - contact = floGlobals.contacts[floID] || floID + } return html.node`