xi-conversations

Minimal clone of thunderbird conversations
git clone https://git.ce9e.org/xi-conversations.git

commit
dfb2321f6864ffbfd13664f0d0332f6346df9614
parent
3c44b9ae768d6eebafb6249514b40228fbee4b22
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-09-06 03:17
skip unnecessary parseContacts() in canReplyAll

Diffstat

M content/js/message.js 6 +-----

1 files changed, 1 insertions, 5 deletions


diff --git a/content/js/message.js b/content/js/message.js

@@ -45,11 +45,7 @@ export default function(msg, expanded) {
   45    45 	var h = util.h;
   46    46 	var _ = browser.i18n.getMessage;
   47    47 
   48    -1 	var canReplyAll = (
   49    -1 		util.parseContacts(msg.recipients).length
   50    -1 		+ util.parseContacts(msg.ccList).length
   51    -1 		+ util.parseContacts(msg.bccList).length
   52    -1 	) > 1;
   -1    48 	var canReplyAll = msg.recipients.length + msg.ccList.length + msg.bccList.length > 1;
   53    49 
   54    50 	var e = h('article', {'class': expanded ? 'message is-expanded' : 'message', 'id': `msg-${msg.id}`, 'tabindex': -1}, [
   55    51 		h('header', {'class': 'message__header'}, [