odoo/odoo#189382
Created by fw-bot
Merged
at c9ccf22d09e6bc00b67d887bf566443d8c528959
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-saas-17.4-fix_scroll_to_unknown-tsm-0W-n-fw
- head
- ebd4771a7cc22857bbbea8fa6718a456593a41ea
- merged
- 1 year ago by Discuss, Matthieu Stockbauer (tsm)
| odoo/odoo | |
|---|---|
| saas-17.4 | #189282 |
| 18.0 | #189323 |
| saas-18.2 | |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #189382 |
[FW][FIX] mail: scroll to not yet loaded pinned message
Before this PR, clicking on the "user pinned a message to the channel" notification linked to a not yet loaded message would not scroll to the pinned message.
This issue arises because the highlightMessage function does nothing if the message's thread is different from the current one. However, when a message is unknown, the thread is also unknown, and the function does nothing.
The notification is only displayed in the origin thread of the message, so we can safely pass this information, assuming the message thread and the notification thread are the same.