Save account information after successful updateCredentials

This used to be handled at one callsite.

contributes to iOS-319
This commit is contained in:
shannon 2024-11-19 10:21:43 -05:00
parent ae7aaf091d
commit 96e3bec016
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ extension APIService {
authorization: authorization authorization: authorization
).singleOutput() ).singleOutput()
PersistenceManager.shared.cacheAccount(response.value, forUserID: MastodonUserIdentifier(domain: domain, userID: response.value.id))
return response return response
} }