From 47469c3842f41a7888dd5c64fa73ae27e69f8f00 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 28 Jul 2022 15:03:56 +0200 Subject: [PATCH] Fix tnef attachments fails for first time read --- mail/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index abb31f8e06..3b985802fb 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1058,9 +1058,9 @@ app.classes.mail = AppJS.extend( if (typeof _data == 'object') { data.attachmentsBlock = _data; - data.attachmentsBlockTitle = `${_data.lenght} attachments`; + data.attachmentsBlockTitle = `${_data.length} attachments`; // Update client cache to avoid resolving winmail.dat attachment again - egw.dataStoreUID(this.data.uid, this.data); + egw.dataStoreUID(data.uid, data); mailPreview.set_value({content:data}); } else