summaryrefslogtreecommitdiff
path: root/addons/im_support/static/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/im_support/static/src/js')
-rw-r--r--addons/im_support/static/src/js/support_message.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/im_support/static/src/js/support_message.js b/addons/im_support/static/src/js/support_message.js
index 7a4df85ca3a..92c85842aad 100644
--- a/addons/im_support/static/src/js/support_message.js
+++ b/addons/im_support/static/src/js/support_message.js
@@ -14,7 +14,10 @@ var SupportMessage = Message.extend({
*/
init: function () {
this._super.apply(this, arguments);
- if (this._serverAuthorID !== this.call('mail_service', 'getOdoobotID')) {
+ if (
+ !this._serverAuthorID ||
+ this._serverAuthorID[0] !== this.call('mail_service', 'getOdoobotID')[0]
+ ) {
if (!this._serverAuthorID[0]) {
// the author is the client
this._serverAuthorID = [session.partner_id, session.name];