From 5ce987138ced429b964012e546135d5e7a9d9fe1 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 17 Nov 2021 19:58:53 -0300 Subject: [PATCH] Fix over-zealous assert in user profile. --- SignalServiceKit/src/Util/OWSUserProfile.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SignalServiceKit/src/Util/OWSUserProfile.m b/SignalServiceKit/src/Util/OWSUserProfile.m index 609b712849..4e02d816db 100644 --- a/SignalServiceKit/src/Util/OWSUserProfile.m +++ b/SignalServiceKit/src/Util/OWSUserProfile.m @@ -834,8 +834,8 @@ NSString *NSStringForUserProfileWriter(UserProfileWriter userProfileWriter) // Profile changes, record updates with storage service. We don't store avatar information on the service except for // the local user. BOOL shouldUpdateStorageService = shouldUpdateStorageServiceForUserProfileWriter(userProfileWriter); - if (shouldUpdateStorageService && userProfileWriter == UserProfileWriter_ProfileFetch) { - OWSFailDebug(@"Should not update storage service to reflect profile fetches."); + if (isLocalUserProfile && userProfileWriter == UserProfileWriter_ProfileFetch) { + // Never update local profile on storage service to reflect profile fetches. shouldUpdateStorageService = NO; }