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

[Session] Restore emailAuthFactor and emailConfirmed from last session #3939

Merged
merged 1 commit into from
May 9, 2024

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented May 9, 2024

Carries over https://github.com/bluesky-social/social-app/pull/3728/files#diff-ba67025ff0027278031f772f88a9ed2f7fa4b12421d0a423ad74b4937aa2ca53R281 from #3728.

My bad that I missed it.

This fixes the false positive "you have not verified your email" popup. The emailConfirmed flag is not required so I forgot to specify it. So when you resume session from storage, the first render will not have the full object.

The full object still arrives a bit later (and gets written to the persistent storage) but then the same problem happens on next refresh. (The reason people don't see the same problem on next refreshes now is due to the auto-snoozing flag for this popup.)

Test Plan

Comment out all the other checks in shouldRequestEmailConfirmation. Verify that the full object comes through when you refresh the page, and the popup does not appear.

Copy link

render bot commented May 9, 2024

@gaearon gaearon requested review from pfrazee and estrattonbailey May 9, 2024 22:53
Copy link

github-actions bot commented May 9, 2024

Old size New size Diff
6.89 MB 6.89 MB 80 B (0.00%)

@pfrazee pfrazee merged commit 6e172b6 into main May 9, 2024
6 checks passed
@pfrazee pfrazee deleted the fix-session-resume branch May 9, 2024 23:06
@alikatgh
Copy link

Screenshot 2024-05-10 at 16 53 11

Thank you for JJ. Enjoying it fully.

Here is the console log. You should send your style over HTTPS.

P.S. I can't come up with better ways to reach out and say "ty".

All excuse me for off-top.

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.

3 participants