diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2020-06-15 11:07:54 +0000 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2020-06-26 00:54:54 +0000 |
| commit | 257371bab52b009c027ead19857fbd865f2bc5b4 (patch) | |
| tree | 997978f831cd0879b2b410ec3c79ccb156d7e725 /addons/mail/static/src/components/composer | |
| parent | 5a30919826bd4072bf3e0e2915b9df271d58ee78 (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/composer')
| -rw-r--r-- | addons/mail/static/src/components/composer/composer_tests.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail/static/src/components/composer/composer_tests.js b/addons/mail/static/src/components/composer/composer_tests.js index c62242360a6..24bba449019 100644 --- a/addons/mail/static/src/components/composer/composer_tests.js +++ b/addons/mail/static/src/components/composer/composer_tests.js @@ -612,6 +612,7 @@ QUnit.test('composer text input cleared on message post', async function (assert channel_channel: [{ channel_type: 'channel', id: 20, + is_pinned: true, name: "General", }], }, @@ -660,6 +661,7 @@ QUnit.test('composer with thread typing notification status', async function (as channel_channel: [{ channel_type: 'channel', id: 20, + is_pinned: true, name: "General", }], }, @@ -691,6 +693,7 @@ QUnit.test('current partner notify is typing to other thread members', async fun channel_channel: [{ channel_type: 'channel', id: 20, + is_pinned: true, members: [{ email: 'admin@odoo.com', id: 3, @@ -746,6 +749,7 @@ QUnit.test('current partner is typing should not translate on textual typing sta channel_channel: [{ channel_type: 'channel', id: 20, + is_pinned: true, members: [{ email: 'admin@odoo.com', id: 3, @@ -809,6 +813,7 @@ QUnit.test('current partner notify no longer is typing to thread members after 5 channel_channel: [{ channel_type: 'channel', id: 20, + is_pinned: true, members: [{ email: 'admin@odoo.com', id: 3, @@ -871,6 +876,7 @@ QUnit.test('current partner notify is typing again to other members every 50s of channel_channel: [{ channel_type: 'channel', id: 20, + is_pinned: true, members: [{ email: 'admin@odoo.com', id: 3, |
