summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorAlexandre Kühn <aku@odoo.com>2019-02-18 13:16:00 +0000
committerAlexandre Kühn <aku@odoo.com>2019-02-18 13:16:04 +0000
commite3714eeea657f71bfe127013cc6e0c56c6b6ca09 (patch)
tree9d3def8f5216255afb3a66631969dffe3de1290c /addons/web/static/src/js/fields/basic_fields.js
parentdba97a2689eb54767da28d55ea6b26692848dae1 (diff)
[FIX] im_livechat: instantly receive messages from new livechat
Before this commit, when new messages were posted in a new livechat, the operator received them after a delay. This may take up to a minute before receiving the notification. This behaviour was causing a bigger issue: those notifications may never be received by the operator. This case happened when the operator was receiving more recent notifications while notifications from new livechats were pending. The delay was caused by the operator not yet subscribed to notifications on the newly created livechat. It is only on the next poll of longpolling that the subscription occurred, then followed by dispatching the notifications to the operator. This commit fixes the issue by dispatching new messages of new livechats directly to the operator. This is done by enforcing the operator to make another polling when a new livechat is created, so that he is always subscribed to those livechats. As a result, new messages are received instantaneously. opw-1933951 closes odoo/odoo#31199
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions