-
-
Notifications
You must be signed in to change notification settings - Fork 171
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: showing wrong chat ("Reply Privately" quote) #4511
Conversation
5159c50
to
feae518
Compare
feae518
to
6282970
Compare
6282970
to
c505c51
Compare
c505c51
to
903ca2b
Compare
903ca2b
to
d1f8f1c
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.
When testing I see constantly the (new) error log:
Tried to show messages from a different chat.
this.accountId === 1, this.chatId === 13, target IDs: 1, 14. jumpToMessageId === 81
I see that the correct group chat ID is fetched from backend (14) for the correct msgId from the quote (81), but when jump_to_message is performed still the chatId of the private chat is in this.chatId
Edit: this happens even before clicking the "jump down" button
Also add a runtime warning. The `MessageListStore` re-creation logic was apparently introduced in cf9eb1f.
1. "Reply Privately" to a message in a group. 2. Click on the quote. This will open the original chat. 3. Click the "jump down" button. This will load the messages from the private chat, but still show the original group chat in the chat header.
d1f8f1c
to
36584ff
Compare
Right, I rebased on top of #4510, and the error is no longer printed for me. |
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.
Review by Testing & Reading
This will load the messages from the private chat,
but still show the original group chat in the chat header.