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

refactor: Don't update message state to OutMdnRcvd anymore #5821

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Jul 31, 2024

This state can be computed from the msgs_mdns table without significant overhead as we have an index by msg_id there. A little more code, but overall the logic is simpler.

EDIT: This allows to add some OutRcvd message state for received outgoing messages which doesn't need to be upgraded to OutMdnRcvd and to fix the scenario in #5813 by sorting such messages the same way as InFresh ones.

@iequidoo iequidoo marked this pull request as ready for review July 31, 2024 02:17
@iequidoo iequidoo requested a review from link2xt July 31, 2024 02:17
This state can be computed from the `msgs_mdns` table without significant overhead as we have an
index by msg_id there.
@iequidoo iequidoo force-pushed the iequidoo/dont-store-OutMdnRcvd branch from 49a26e1 to 9a7fac3 Compare July 31, 2024 23:36
@iequidoo iequidoo merged commit a30c6ae into main Aug 1, 2024
36 of 37 checks passed
@iequidoo iequidoo deleted the iequidoo/dont-store-OutMdnRcvd branch August 1, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants