mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Improve switching between public and private locations
This commit is contained in:
@@ -81,8 +81,12 @@ final class AccountsModel: ObservableObject {
|
||||
piped.setAccount(account)
|
||||
}
|
||||
|
||||
Defaults[.lastAccountID] = account.anonymous ? (account.isPublic ? "public" : nil) : account.id
|
||||
Defaults[.lastInstanceID] = account.instanceID
|
||||
Defaults[.lastAccountIsPublic] = account.isPublic
|
||||
|
||||
if !account.isPublic {
|
||||
Defaults[.lastAccountID] = account.anonymous ? nil : account.id
|
||||
Defaults[.lastInstanceID] = account.instanceID
|
||||
}
|
||||
}
|
||||
|
||||
static func find(_ id: Account.ID) -> Account? {
|
||||
|
Reference in New Issue
Block a user