Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Dec 2, 2024

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.

Forward-Port-Of: #189323
Forward-Port-Of: #189282

@robodoo robodoo added forwardport This PR was created by @fw-bot conflict There was an error while creating this forward-port PR labels Dec 2, 2024
@robodoo
Copy link
Contributor

robodoo commented Dec 2, 2024

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Dec 2, 2024

@tsm-odoo cherrypicking of pull request #189282 failed.

stdout:

Auto-merging addons/mail/static/src/core/common/message.js
Auto-merging addons/mail/static/tests/thread/unread_messages_banner.test.js
CONFLICT (content): Merge conflict in addons/mail/static/tests/thread/unread_messages_banner.test.js

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.

⚠️ after resolving this conflict, you will need to merge it via @robodoo.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@C3POdoo C3POdoo added the RD research & development, internal work label Dec 2, 2024
@tsm-odoo tsm-odoo force-pushed the master-saas-17.4-fix_scroll_to_unknown-tsm-0W-n-fw branch from 47ccbc7 to 78ee061 Compare December 3, 2024 09:15
Copy link
Contributor

@tsm-odoo tsm-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@C3POdoo C3POdoo requested review from a team December 3, 2024 09:19
@robodoo
Copy link
Contributor

robodoo commented Dec 3, 2024

@tsm-odoo 'ci/runbot' failed on this reviewed PR.

@tsm-odoo tsm-odoo force-pushed the master-saas-17.4-fix_scroll_to_unknown-tsm-0W-n-fw branch from 78ee061 to 442a738 Compare December 3, 2024 11:57
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
@tsm-odoo tsm-odoo force-pushed the master-saas-17.4-fix_scroll_to_unknown-tsm-0W-n-fw branch from 442a738 to ebd4771 Compare December 4, 2024 07:47
@tsm-odoo
Copy link
Contributor

tsm-odoo commented Dec 4, 2024

@robodoo r+

robodoo pushed a commit that referenced this pull request Dec 5, 2024
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>
@robodoo robodoo added the 18.1 label Dec 5, 2024
@robodoo robodoo closed this Dec 5, 2024
@alexkuhn alexkuhn deleted the master-saas-17.4-fix_scroll_to_unknown-tsm-0W-n-fw branch December 5, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

18.1 conflict There was an error while creating this forward-port PR forwardport This PR was created by @fw-bot RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants