fix: correct phone verification success notification - #3164
Merged
Conversation
After invalidate, the store holds the new phoneVerification value. Match the email path so the toast reports verified/unverified correctly. Fixes #1392 Co-authored-by: chiragaggarwal5k <chiragaggarwal5k@gmail.com>
Console (appwrite/console)Project ID: Tip Teams feature lets you group users with membership management and role permissions |
Contributor
Greptile SummaryCorrects the phone verification success notification so it describes the refreshed verification state consistently with the email verification path.
Confidence Score: 5/5The PR appears safe to merge, with the corrected phone notification matching the established email verification behavior. The change only corrects success-message selection after the user data is invalidated and refreshed, without altering verification state, authorization, or persistence behavior. Important Files Changed
Reviews (1): Last reviewed commit: "fix: correct phone verification success ..." | Re-trigger Greptile |
ChiragAgg5k
approved these changes
Aug 17, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Summary
After updating phone verification and invalidating the user store, the success toast used the new
phoneVerificationvalue with inverted copy, so Verify showed "unverified" and Unverify showed "verified".Align the phone path with the email path (
!$user.phoneVerification ? 'unverified' : 'verified') so the toast matches the post-update state.Fixes #1392
Test plan