summaryrefslogtreecommitdiff
path: root/addons/website_livechat/static/src
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-07-31 14:42:35 +0000
committerDavid Beguin <dbe@odoo.com>2019-08-19 06:33:37 +0000
commita8ce2886be2e02315fa3526257a941c91c5385b9 (patch)
treeabd2c76b1affdf0cb3cb48899f8164281d63f097 /addons/website_livechat/static/src
parent498d2a80801b43619f8d3f343abf721de319137a (diff)
[FIX] im_livechat : avoid to send twice first operator message to visitor
What was going on here is that when the operator start the discussion with the visitor and the visitor navigates to a new page, the livechat button widget checks the cookie and see there is already a active conversation. It loads the mail_channel and write all the history of the conversation. So the first message is writting a first time. Then, it handles the notifications. As the visitor did not receive the first message notification yet, the first message notification comes up and the widget handle it. Adding the message a second time. To avoid this, we just stop the notification handling if the message is already present in the conversation. Task ID: 2028059 PR #34624
Diffstat (limited to 'addons/website_livechat/static/src')
0 files changed, 0 insertions, 0 deletions