-
Notifications
You must be signed in to change notification settings - Fork 30.1k
[FW][FIX] mail: scroll to not yet loaded pinned message #189382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FW][FIX] mail: scroll to not yet loaded pinned message #189382
Conversation
|
@tsm-odoo cherrypicking of pull request #189282 failed. stdout: Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?). In the former case, you may want to edit this PR message as well. More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
47ccbc7 to
78ee061
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robodoo r+
|
@tsm-odoo 'ci/runbot' failed on this reviewed PR. |
78ee061 to
442a738
Compare
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. X-original-commit: e82929b
442a738 to
ebd4771
Compare
|
@robodoo r+ |
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. closes #189382 X-original-commit: e82929b Signed-off-by: Matthieu Stockbauer (tsm) <tsm@odoo.com>

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
highlightMessagefunction 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.
Forward-Port-Of: #189323
Forward-Port-Of: #189282