2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

Fix another user-warning (IOS-192)

This commit is contained in:
Nathan Mattes 2024-02-09 19:10:24 +01:00
parent dc53fbbe7c
commit 3ff509cb27

View File

@ -211,9 +211,8 @@ extension HomeTimelineViewController {
self?.showEmptyView()
let userDoesntFollowPeople: Bool
if let managedObjectContext = self?.context.managedObjectContext,
let authContext = self?.authContext,
let me = authContext.mastodonAuthenticationBox.authentication.user(in: managedObjectContext){
if let authContext = self?.authContext,
let me = authContext.mastodonAuthenticationBox.authentication.account() {
userDoesntFollowPeople = me.followersCount == 0
} else {
userDoesntFollowPeople = true