Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions WordPress/Jetpack/Classes/System/JetpackWindowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,8 @@ class JetpackWindowManager: WindowManager {

override func showUI(for blog: Blog?) {
if AccountHelper.isLoggedIn {
if AccountHelper.hasBlogs {
// If the user is logged in and has blogs sync'd to their account
showAppUI(for: blog)
return
} else {
// If the user doesn't have any blogs, but they're still logged in, log them out
// the `logOutDefaultWordPressComAccount` method will trigger the `showSignInUI` automatically
AccountHelper.logOutDefaultWordPressComAccount()
return
}
showAppUI(for: blog)
return
}

guard FeatureFlag.contentMigration.enabled else {
Expand Down