|
@ -19,15 +19,9 @@ var _lt = core._lt; |
|
|
var ChatAction = core.action_registry.get('mail.chat.instant_messaging'); |
|
|
var ChatAction = core.action_registry.get('mail.chat.instant_messaging'); |
|
|
ChatAction.include({ |
|
|
ChatAction.include({ |
|
|
set_channel: function(channel){ |
|
|
set_channel: function(channel){ |
|
|
var result = this._super.apply(this, arguments); |
|
|
|
|
|
// Add "Send message" button in the Sent menu
|
|
|
|
|
|
|
|
|
this._super.apply(this, arguments); |
|
|
|
|
|
// Add channel Sent for show "Send message" button
|
|
|
this.show_send_message_button.push('channel_sent'); |
|
|
this.show_send_message_button.push('channel_sent'); |
|
|
var self = this; |
|
|
|
|
|
return $.when(result).done(function() { |
|
|
|
|
|
self.$buttons |
|
|
|
|
|
.find('.o_mail_chat_button_new_message') |
|
|
|
|
|
.toggle(self.show_send_message_button.indexOf(channel.id) != -1); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
get_thread_rendering_options: function (messages) { |
|
|
get_thread_rendering_options: function (messages) { |
|
|
var options = this._super.apply(this, arguments); |
|
|
var options = this._super.apply(this, arguments); |
|
|