From 652d835f77da3e19eeb70a4a2fec46fd9bff8b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Tue, 23 Jun 2020 17:03:08 +0000 Subject: [FIX] mail: restore close of other menus on click of messaging menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit task-2278830 closes odoo/odoo#53566 X-original-commit: 0407151b34da16ca54066bb15e578dc1db85f365 Signed-off-by: Alexandre Kühn (aku) Signed-off-by: Sébastien Theys (seb) --- addons/mail/static/src/models/thread/thread.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'addons/mail/static/src/models/thread/thread.js') diff --git a/addons/mail/static/src/models/thread/thread.js b/addons/mail/static/src/models/thread/thread.js index 210fa0cafd1..06c41652ff8 100644 --- a/addons/mail/static/src/models/thread/thread.js +++ b/addons/mail/static/src/models/thread/thread.js @@ -366,18 +366,6 @@ function factory(dependencies) { } } - /** - * @static - */ - static openNewMessage() { - const discuss = this.env.messaging.discuss; - if (discuss.isOpen) { - discuss.openNewMessage(); - } else { - this.env.messaging.chatWindowManager.openNewMessage(); - } - } - /** * @param {string} [stringifiedDomain='[]'] * @returns {mail.thread_cache} -- cgit v1.2.3