summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js/chat_manager.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/js/chat_manager.js')
-rw-r--r--addons/mail/static/src/js/chat_manager.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js
index 3fa366dbe49..240355f79d4 100644
--- a/addons/mail/static/src/js/chat_manager.js
+++ b/addons/mail/static/src/js/chat_manager.js
@@ -179,6 +179,7 @@ function make_channel (data, options) {
is_folded: data.state === "folded",
autoswitch: 'autoswitch' in options ? options.autoswitch : true,
hidden: options.hidden,
+ display_needactions: options.display_needactions,
cache: {'[]': {
all_history_loaded: false,
loaded: false,
@@ -410,15 +411,15 @@ var chat_manager = {
// ---------------------------------------------------------------------------------
function init () {
add_channel({
- id: "channel_inbox",
- name: _t("Inbox"),
- type: "static"
- });
+ id: "channel_inbox",
+ name: _t("Inbox"),
+ type: "static",
+ }, { display_needactions: true });
add_channel({
- id: "channel_starred",
- name: _t("Starred"),
- type: "static"
+ id: "channel_starred",
+ name: _t("Starred"),
+ type: "static"
});
var load_channels = session.rpc('/mail/client_action').then(function (result) {