Repository navigation
fix: keep the quote when replying in direct message to a thread message - #7899
OtavioStasiak wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe message service adds a lookup that can fall back from messages to thread messages. MessageComposer uses this lookup when loading a message and preparing quoted messages. Tests cover lookup behavior, thread IDs, and quote handling. ChangesThread-aware message lookup
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested labels: Suggested reviewers: Merge Risk:
|
Proposed changes
"Reply in direct message" on a thread reply opened the DM without the quote. The DM composer looked up the quoted id in the
messagestable only, and a thread reply that was loaded by opening its thread lives only inthread_messages.getMessageOrThreadMessageById, which falls back tothread_messageswhen the message isn't inmessagesand there's notmid.useMessage) and the quote link added on send (prepareQuoteMessage).getMessageByIdis unchanged, since room sync relies on it only readingmessages.Regression from the new message composer (#5205, 4.47.0), which switched Reply in DM from passing the message object to a
messageIdlookup. #7535 added the thread lookup only when atmidis passed, so the DM path stayed broken.Issue(s)
https://rocketchat.atlassian.net/browse/SUP-1144
How to test or reproduce
Screenshots
Types of changes
Checklist