odoo/odoo#189282

Created by Discuss, Matthieu Stockbauer (tsm)
Merged at e4874075c478e9d5c36acc1105c7e33f4d738437

Statuses:

label
odoo-dev:saas-17.4-fix_scroll_to_unknown-tsm
head
d8b3e3414d851a90d2d8920b80fd93319ce3218d
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

[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.