From 3de3573f1e2987c18433e2fe471e4ceb59cd2374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Wed, 23 Mar 2022 14:44:01 +0000 Subject: [PATCH] [IMP] mail: remove useless guard 'Thread/hasComposerThreadTyping' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thread/hasComposerThreadTyping is always set to boolean, so never `undefined`. Task-2793280 closes odoo/odoo#86965 Signed-off-by: Alexandre Kühn (aku) --- addons/mail/static/src/models/composer_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/models/composer_view.js b/addons/mail/static/src/models/composer_view.js index b8015429548..35a24c018df 100644 --- a/addons/mail/static/src/models/composer_view.js +++ b/addons/mail/static/src/models/composer_view.js @@ -612,7 +612,7 @@ registerModel({ * @returns {boolean|FieldCommand} */ _computeHasThreadTyping() { - if (this.threadView && this.threadView.hasComposerThreadTyping !== undefined) { + if (this.threadView) { return this.threadView.hasComposerThreadTyping; } return clear();