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

fix: babbles messages #504

Merged
merged 2 commits into from
Dec 5, 2023
Merged

fix: babbles messages #504

merged 2 commits into from
Dec 5, 2023

Conversation

agazso
Copy link
Contributor

@agazso agazso commented Dec 4, 2023

Sometimes messages disappear from the waku store. This is a fix for the case if a message's parent is lost to keep at least the rest of the thread.

Copy link

vercel bot commented Dec 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku-objects-playground ✅ Ready (Inspect) Visit Preview Dec 4, 2023 10:19am

Comment on lines +129 to +131
// this is a workaround for the case when the parent is lost to
// keep the rest of the thread
roots.push(parent)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a temporary fix? If so, I suggest adding //FIXME: or //TODO:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, for now it is a workaround for lost messages.

However there is a broader issue that we only keep MAX_MESSAGES (currently set to 100) messages locally in the history. This is not a big issue with chats because they are linear, but with babbles it is possible that a parent message is lost because of this and the conversation would be orphaned without this workaround too.

@agazso agazso merged commit 703e7b1 into main Dec 5, 2023
3 checks passed
@agazso agazso deleted the fix/babbles-messages branch December 5, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants