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

Prefer references to fully downloaded messages over partially downloaded messages #5645

Closed
link2xt opened this issue Jun 1, 2024 · 0 comments · Fixed by #5682
Closed

Prefer references to fully downloaded messages over partially downloaded messages #5645

link2xt opened this issue Jun 1, 2024 · 0 comments · Fixed by #5682
Assignees
Labels
enhancement New feature or request

Comments

@link2xt
Copy link
Collaborator

link2xt commented Jun 1, 2024

Since #5458 messages may be assigned to a chat if they reference partially downloaded message. However if message contains multiple references and one of them is a reference to fully downloaded message, we should prefer this one.

For example, consider receiving these messages:

  1. Fully downloaded message creating a group.
  2. Partially downloaded message to this group, assigned to 1:1 chat.
  3. Fully downloaded message to the group.
  4. Partially downloaded message to the group, referencing (2) and (3). Currently it will be assigned to 1:1 chat, but we can assign it to a group.

This is a follow-up enhancement that can be done once #5644 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants