summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2020-06-15 11:07:54 +0000
committerAlexandre Kühn <aku@odoo.com>2020-06-26 00:54:54 +0000
commit257371bab52b009c027ead19857fbd865f2bc5b4 (patch)
tree997978f831cd0879b2b410ec3c79ccb156d7e725 /addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js
parent5a30919826bd4072bf3e0e2915b9df271d58ee78 (diff)
[FIX] mail: discuss: unpin channel fixes
FIX: use the correct API of mail.channel.py to unfollow a channel i.e.: `execute_command_leave` FIX: unpinning a channel has immediate effect on the interface chatWindows are closed, and the inbox is displayed FIX: unpinning a channel destroys corresponding chatWindows across tabs It also unpins the channel in other tabs FIX: python sends is_pinned as part of the channel_info both at init messaging and in the main bus notification That way, we can keep track of the synchronization of the pin status between JS and python task-2275000 task-2267941 closes odoo/odoo#53703 X-original-commit: d4fcc64acb2fc0c6fd9df505380f665abd8b39c4 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js')
-rw-r--r--addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js b/addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js
index 259e877cb34..6276cf11ca5 100644
--- a/addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js
+++ b/addons/mail/static/src/components/thread_viewer/thread_viewer_tests.js
@@ -323,7 +323,7 @@ QUnit.test('mark channel as fetched when a new message is loaded and as seen whe
// FIXME should not be needed, see task-2277537
composer: [['create']], // avoid initial focus
id: 100,
- isPinned: true, // just to avoid joinChannel to be called
+ isServerPinned: true, // just to avoid joinChannel to be called
members: [['insert', [
{
email: "john@example.com",
@@ -393,7 +393,7 @@ QUnit.test('mark channel as fetched and seen when a new message is loaded if com
});
const thread = this.env.models['mail.thread'].create({
id: 100,
- isPinned: true, // just to avoid joinChannel to be called
+ isServerPinned: true, // just to avoid joinChannel to be called
members: [['insert', [
{
email: "john@example.com",