-
Notifications
You must be signed in to change notification settings - Fork 253
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_: add missing message verification flag when creating an account #5570
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@richard-ramos, is there a recommendation that we always enable this flag on mobile? Would you say there's a scenario where we don't want this enabled on mobile?
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.
I imagine it should follow the same criteria as
WakuV2EnableStoreConfirmationForMessagesSent
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.
Okay 👍🏼 In which case we will have this setting disabled because we set
WakuV2EnableStoreConfirmationForMessagesSent
to false on profile creation from mobile. Thus the PR should require no changes from mobile. ThanksThere 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.
we can keep this enabled for mobile by default. The reason
WakuV2EnableStoreConfirmationForMessagesSent
was disabled is as it was giving bad UX to users where messages were sent but still showing as not sent due to storeNode performance issues.But this flag doesn't give any bad UX, so we can keep it enabled by default.
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.
Sounds good @chaitanyaprem, thanks for the context.
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.
#5511 is hopefully going to land on 2.30 @richard-ramos. If you prefer to do directly in one status-go PR that seems fine as it's a very safe change, really up to you. On mobile side though, we would implement separately the dynamic usage of the flag because the PR status-im/status-mobile#20730 is already rather large and about to be QAed (we have a separate issue for that status-im/status-mobile#20879)
Since we are planning to cut the release branch tomorrow and are running very low on QA capacity due to other high-priority issues, the dynamic choice of the flag will require QA on mobile, and I'm afraid we can't put it on 2.30. Maybe a patch release like 2.30.1 for internal usage.
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.
In the meantime, to not hold this PR I added the following changes in bd9f98f . If the connection being used is "expensive", skip the missing messages verification. Seems to me like a good middle ground between not having the functionality enabled in mobile and consuming the users' data. Then once #5511 is merged, we can change the code to reuse the functionality to proceed with store queries depending on the users' choice.
@chaitanyaprem @ilmotta if you agree then we can proceed merge this PR with this change, otherwise i can roll it back.
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.
Sounds great @richard-ramos 👍🏼
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.
I doubt the hash based store-query going to be as expensive as legacy-store. Because we only query hashes and if we miss any messages we fetch them which would improve message reliability.
#5511 is expensive as it doesn't query hashes rather full messages.
I think we can keep this new flag enabled by default and provide a switch in the app in case it becomes expensive to disable it.
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.
alright. Worst case scenario we release a x.x.1 :)