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

feat(groups): add a worker to delete expired messages #1503

Merged
merged 31 commits into from
Jan 27, 2025

Conversation

mchenani
Copy link
Contributor

@mchenani mchenani commented Jan 14, 2025

This PR adds a worker that runs every two seconds to clean up expired messages based on group disappearing settings. It also updates the message expiration policy to align with the new disappearing message policy.

Key Changes
• Replaced message_expiration_ms_policy with message_disappearing_policy.
• Added new structures for disappearing settings and updated group options to use them.
• Added methods to update, remove, and fetch disappearing settings for conversations.
• Updated tests to reflect the new policy and added a test for disappearing messages.

closes #1449

bindings_ffi/src/mls.rs Outdated Show resolved Hide resolved
@mchenani mchenani marked this pull request as ready for review January 16, 2025 18:02
@mchenani mchenani requested a review from a team as a code owner January 16, 2025 18:02
bindings_ffi/src/mls.rs Outdated Show resolved Hide resolved
@mchenani mchenani requested a review from insipx January 21, 2025 18:42
insipx
insipx previously approved these changes Jan 27, 2025
Copy link
Contributor

@insipx insipx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Is the napi issue fixed? Otherwise I can help out with that, but i'd need more context on what the problem is

xmtp_mls/src/groups/disappearing_messages.rs Outdated Show resolved Hide resolved
xmtp_mls/src/groups/group_mutable_metadata.rs Outdated Show resolved Hide resolved
insipx
insipx previously approved these changes Jan 27, 2025
@mchenani mchenani merged commit 869a414 into main Jan 27, 2025
15 checks passed
@mchenani mchenani deleted the mc/disappearning-messages-worker branch January 27, 2025 18:35
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.

Message retention policy (disappearing messages)
3 participants