Browse Source

[FIX] update_message_current_on_current_channel() was wrongly placed in MailTools class instead ChatAction class, that's why moved from MailTools to ChatAction

pull/36/head
x620 9 years ago
parent
commit
bbee68aced
  1. 12
      mail_sent/static/src/js/sent.js

12
mail_sent/static/src/js/sent.js

@ -25,6 +25,12 @@ ChatAction.include({
this.channels_show_send_button.push(channel_name); this.channels_show_send_button.push(channel_name);
// Add channel Sent for enable "display_subject" option // Add channel Sent for enable "display_subject" option
this.channels_display_subject.push(channel_name); this.channels_display_subject.push(channel_name);
},
update_message_on_current_channel: function(current_channel_id, message){
var result = this._super.apply(this, arguments);
var sent = current_channel_id === "channel_sent" && !message.is_sent;
return sent || result;
} }
}); });
@ -54,12 +60,6 @@ base_obj.MailTools.include({
['sent', '=', true], ['sent', '=', true],
['author_id.user_ids', 'in', [openerp.session.uid]] ['author_id.user_ids', 'in', [openerp.session.uid]]
] : this._super.apply(this, arguments); ] : this._super.apply(this, arguments);
},
update_message_on_current_channel: function(current_channel_id, message){
var result = this._super.apply(this, arguments);
var sent = current_channel_id === "channel_sent" && !message.is_sent;
return sent || result;
} }
}); });

Loading…
Cancel
Save