From 3f88ce5c792a1bebfcdb7fdf89a6ee6feb04a06b Mon Sep 17 00:00:00 2001 From: alpavanoglu Date: Wed, 7 Dec 2022 13:09:57 +0100 Subject: [PATCH] Remove `hasBlogs` check from `JetpackWindowManager` --- .../Classes/System/JetpackWindowManager.swift | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/WordPress/Jetpack/Classes/System/JetpackWindowManager.swift b/WordPress/Jetpack/Classes/System/JetpackWindowManager.swift index 1ab8f3a95d07..2d1a8c56f5f8 100644 --- a/WordPress/Jetpack/Classes/System/JetpackWindowManager.swift +++ b/WordPress/Jetpack/Classes/System/JetpackWindowManager.swift @@ -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 {