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

Disable documentTitle in NavigationRoot component #2993

Merged
merged 2 commits into from
May 19, 2021

Conversation

deetergp
Copy link
Contributor

Mu

Details

The listener that sets the page title when there are new chat items, that gets attached in AuthScreens was getting overridden by the NavigationContainer in NavigationRoot.js, which apparently mounts a few more times after the listener updates the title. This changes it so that the NavigationContainer only sets the title to Expnesify.cash when the document.title is not already set.

cc @marcaaron

Fixed Issues

Fixes #2636

Tests/QA

  1. Launch the app as Account B and log in
  2. As account B, send some messages to account A
  3. Go to localhost:8080 as Account A in Web/Chrome
  4. Observe the favicons and NEW! Expensify.cash
  5. Verify that once (NEW!) Expensify.cash is set, it stays set.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

flasherFix.mp4

@deetergp deetergp requested a review from a team as a code owner May 19, 2021 00:25
@deetergp deetergp self-assigned this May 19, 2021
@MelvinBot MelvinBot requested review from MariaHCD and removed request for a team May 19, 2021 00:25
@deetergp
Copy link
Contributor Author

Updated.

@marcaaron marcaaron merged commit bbd3867 into main May 19, 2021
@marcaaron marcaaron deleted the scott_fixFlashingTabTitle branch May 19, 2021 21:59
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@deetergp deetergp changed the title Only set title when it's not already set Disable documentTitle in NavigationRoot component May 19, 2021
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.

Favicon - Flashing NEW! Expensify.cash and icon without white background can be seen in tab
3 participants