-
-
Notifications
You must be signed in to change notification settings - Fork 90
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: assign messages to chats based on not fully downloaded references #5458
Conversation
5ea05e2
to
bea2193
Compare
src/chat.rs
Outdated
{ | ||
// If `msg` is not fully downloaded or undecipherable, it may have been assigned to the | ||
if msg.download_state == DownloadState::Undecipherable { | ||
// If `msg` is not undecipherable, it may have been assigned to the |
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.
Partially downloaded messages are also potentially undecipherable. The only difference is that we can download them and (likely) validate their assignment to chat. Maybe just remove this comment?
bea2193
to
18714ee
Compare
{ | ||
// If `msg` is not fully downloaded or undecipherable, it may have been assigned to the | ||
// wrong chat (they often get assigned to the 1:1 chat with the sender). | ||
if msg.download_state == DownloadState::Undecipherable { |
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.
Removing this condition breaks existing Python test test_undecipherable_group
. We can also remove it and adjust the test, but I wanted to minimize the changes so e.g. if user has no download limit everything works the same as before.
Fixes #5347