From 96e3bec016dd833adfcc41a499c1f8ecd3402ff3 Mon Sep 17 00:00:00 2001 From: shannon Date: Tue, 19 Nov 2024 10:21:43 -0500 Subject: [PATCH] Save account information after successful updateCredentials This used to be handled at one callsite. contributes to iOS-319 --- .../Sources/MastodonCore/Service/API/APIService+Account.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MastodonSDK/Sources/MastodonCore/Service/API/APIService+Account.swift b/MastodonSDK/Sources/MastodonCore/Service/API/APIService+Account.swift index 81c445d64..218948d33 100644 --- a/MastodonSDK/Sources/MastodonCore/Service/API/APIService+Account.swift +++ b/MastodonSDK/Sources/MastodonCore/Service/API/APIService+Account.swift @@ -95,6 +95,8 @@ extension APIService { authorization: authorization ).singleOutput() + PersistenceManager.shared.cacheAccount(response.value, forUserID: MastodonUserIdentifier(domain: domain, userID: response.value.id)) + return response }