diff options
Diffstat (limited to 'addons/mail/static/src/models/user/user.js')
| -rw-r--r-- | addons/mail/static/src/models/user/user.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/static/src/models/user/user.js b/addons/mail/static/src/models/user/user.js index 2decc8efd92..172b8c5b780 100644 --- a/addons/mail/static/src/models/user/user.js +++ b/addons/mail/static/src/models/user/user.js @@ -113,7 +113,9 @@ function factory(dependencies) { thread.model === 'mail.channel' && thread.public === 'private' ); - if (!chat) { + if (!chat ||!chat.isPinned) { + // if chat is not pinned then it has to be pinned client-side + // and server-side, which is a side effect of following rpc chat = await this.async(() => this.env.models['mail.thread'].performRpcCreateChat({ partnerIds: [this.partner.id], |
