[FIX] im_livechat: fix visitors typing issues

In livechat, chat_post was called without notifying user has stopped
typing as done in new way of handling it in new mail module. This commit
handles the legacy by calling notify_typing rpc as needed.

task-2282271
task-2299331

closes odoo/odoo#55223

X-original-commit: 030ea9adf74f3f4c0d61b19870d6894de1f20c75
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
Xavier Dubuc
2020-07-30 15:49:27 +00:00
parent e3ab7d9b6b
commit 0511a88f85
@@ -316,6 +316,7 @@ var LivechatButton = Widget.extend({
*/
_sendMessage: function (message) {
var self = this;
this._livechat._notifyMyselfTyping({ typing: false });
return session
.rpc('/mail/chat_post', { uuid: this._livechat.getUUID(), message_content: message.content })
.then(function (messageId) {