sync local profile as soon as it's created

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent 1aeccc6a4e
commit 4c51f1810c

@ -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];
}
});
}
}

Loading…
Cancel
Save