Adds account type check for Twitter deprecation alert
This commit is contained in:
parent
da91548875
commit
b83345a47f
|
@ -965,6 +965,7 @@ internal extension AppDelegate {
|
|||
|
||||
var twitterIsActive: Bool = false
|
||||
AccountManager.shared.accounts.forEach({ account in
|
||||
if account.type == .cloudKit || account.type == .onMyMac {
|
||||
account.flattenedWebFeeds().forEach({ webfeed in
|
||||
guard let components = URLComponents(string: webfeed.url),
|
||||
let host = components.host else {
|
||||
|
@ -975,6 +976,7 @@ internal extension AppDelegate {
|
|||
return
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
if twitterIsActive {
|
||||
showTwitterDeprecationAlert()
|
||||
|
|
Loading…
Reference in New Issue