summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-11-04 10:17:16 +0100
committerAaron Bohy <aab@odoo.com>2015-11-04 16:31:44 +0100
commit8ef69bd9fbe435ef312dfa7d6edd5fdefd81e2d7 (patch)
tree088d53ff732b8a25f505b37e3d9a79727fbd6c34 /addons
parentff8473705436a7075c472442d0c0539d4fb1919b (diff)
[FIX] mail: avoid fetching messages when updating ui
Every time the user updates a message, the js code triggered a rpc to refetch messages in the current channel. This is useless, since the new messages have been fetched anyway by the bus.
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/static/src/js/client_action.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/client_action.js b/addons/mail/static/src/js/client_action.js
index 37b990295da..78e5cca529f 100644
--- a/addons/mail/static/src/js/client_action.js
+++ b/addons/mail/static/src/js/client_action.js
@@ -486,7 +486,7 @@ var ChatAction = Widget.extend(ControlPanelMixin, {
var current_channel_id = this.channel.id;
if ((current_channel_id === "channel_starred" && !message.is_starred) ||
(current_channel_id === "channel_inbox" && !message.is_needaction)) {
- chat_manager.fetch(this.channel, this.domain).then(function (messages) {
+ chat_manager.get_messages({channel_id: this.channel.id, domain: this.domain}).then(function (messages) {
var options = self.get_thread_rendering_options();
self.thread.remove_message_and_render(message.id, messages, options);
});