diff options
| author | Alexandre Kühn <aku@odoo.com> | 2019-09-16 10:04:52 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-09-17 09:34:32 +0000 |
| commit | b2247ab72ffaea247a1dce3bf85cba3296e78c85 (patch) | |
| tree | a36b56b1cf1290fbc1d01d4992962833009e0bfc /addons/im_livechat/static/src | |
| parent | aa791a646b5d52f8c56b13ac7f01601cbb345d5d (diff) | |
[FIX] im_livechat: show message history
Revision on https://github.com/odoo/odoo/commit/923fb7aa05f0e9e0e67440073993ec36bb0f5f53
Commit above fixed an issue since v11.0 that display duplicated
messages on a website livechat window.
Forward-ported broke the livechat in v12.0 due to refactoring of mail
https://github.com/odoo/odoo/commit/cd34f6de727d5b3858420cff3c9d3c5995c4e75c
This commit correctly adapts fix for v12.0+.
opw-2070911
closes odoo/odoo#36921
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/im_livechat/static/src')
| -rw-r--r-- | addons/im_livechat/static/src/js/im_livechat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/im_livechat/static/src/js/im_livechat.js b/addons/im_livechat/static/src/js/im_livechat.js index 5a893f2499a..f3ad30c1390 100644 --- a/addons/im_livechat/static/src/js/im_livechat.js +++ b/addons/im_livechat/static/src/js/im_livechat.js @@ -125,7 +125,7 @@ var LivechatButton = Widget.extend({ var message = new WebsiteLivechatMessage(this, data, options); var hasAlreadyMessage = _.some(this._messages, function (msg) { - return message.id === msg.id; + return message.getID() === msg.getID(); }); if (hasAlreadyMessage) { return; |
