Skip to content
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

FIX: deep linking to a message in a thread #27022

Merged
merged 1 commit into from
May 15, 2024

Conversation

ZogStriP
Copy link
Member

Whenever you get a bookmark notification, a mention notification, or click on a bookmark on a message in a long thread, we should ensure we always highlight and show the proper message.

Before this fix, we would correctly load the thread, but would always start at the bottom.

Internal ref. t/128103

Whenever you get a bookmark notification, a mention notification, or click on a bookmark on a message in a long thread, we should ensure we always highlight and show the proper message.

Before this fix, we would correctly load the thread, but would always start at the bottom.

Internal ref. t/128103
@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label May 14, 2024
@@ -223,11 +223,12 @@ export default class ChatThread extends Component {

this.messagesManager.clear();

findArgs.targetMessageId ??=
findArgs.target_message_id ??=
Copy link
Contributor

Choose a reason for hiding this comment

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

was going to ask about camelcase vs snakecase here, but then saw that we pass the findArgs into fetchMessages with snakecase anyway. 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the server is expecting snake_case and we were sending camelCase.

@ZogStriP ZogStriP merged commit 906f486 into main May 15, 2024
16 checks passed
@ZogStriP ZogStriP deleted the deep-link-to-message-in-thread branch May 15, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
2 participants