From 4c51f1810c31d457dae8820498de591b23fc8362 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Tue, 29 Aug 2017 11:04:16 -0400 Subject: [PATCH] sync local profile as soon as it's created // FREEBIE --- Signal/src/Profiles/OWSProfileManager.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Signal/src/Profiles/OWSProfileManager.m b/Signal/src/Profiles/OWSProfileManager.m index 863ace342..459cf4cbb 100644 --- a/Signal/src/Profiles/OWSProfileManager.m +++ b/Signal/src/Profiles/OWSProfileManager.m @@ -287,6 +287,13 @@ const NSUInteger kOWSProfileManager_MaxAvatarDiameter = 640; [self.dbConnection readWriteWithBlock:^(YapDatabaseReadWriteTransaction *_Nonnull transaction) { [_localUserProfile saveWithTransaction:transaction]; }]; + // Sync local profile to any linked device + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ + @synchronized(self) + { + [self saveUserProfile:_localUserProfile]; + } + }); } }