mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Use account name as title of notifications screen
To make it clear that these settings are for the current account only, if there are multiple accounts signed in. Contributes to IOS-384
This commit is contained in:
parent
a53b454a92
commit
9adf10a05e
@ -87,7 +87,11 @@ class NotificationSettingsViewController: UIViewController {
|
||||
view.addSubview(tableView)
|
||||
tableView.pinToParent()
|
||||
|
||||
title = L10n.Scene.Settings.Notifications.title
|
||||
if AuthenticationServiceProvider.shared.mastodonAuthenticationBoxes.count > 1, let username = AuthenticationServiceProvider.shared.currentActiveUser.value?.cachedAccount?.acctWithDomain {
|
||||
title = username
|
||||
} else {
|
||||
title = L10n.Scene.Settings.Notifications.title
|
||||
}
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(willEnterForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user