Skip to content

Commit

Permalink
Merge pull request #18457 from wordpress-mobile/fix/18388-wrong-tour-…
Browse files Browse the repository at this point in the history
…for-self-hosted

Quick Start for Existing Users: Respect feature flag when logging into a self-hosted site
  • Loading branch information
hassaanelgarem authored Apr 27, 2022
2 parents 605692d + dea1064 commit da25f3e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ extension WordPressAuthenticationManager: WordPressAuthenticatorDelegate {
// If adding a self-hosted site, skip the Epilogue
if let wporg = credentials.wporg,
let blog = Blog.lookup(username: wporg.username, xmlrpc: wporg.xmlrpc, in: ContextManager.shared.mainContext) {
presentQuickStartPrompt(for: blog, in: navigationController, onDismiss: onDismissQuickStartPromptForExistingSiteHandler)
let onDismissHandler = FeatureFlag.quickStartForExistingUsers.enabled ? onDismissQuickStartPromptForExistingSiteHandler : onDismissQuickStartPromptForNewSiteHandler
presentQuickStartPrompt(for: blog, in: navigationController, onDismiss: onDismissHandler)
return
}

Expand Down

0 comments on commit da25f3e

Please sign in to comment.