Fix crash

pull/220/head
nielsandriesse 5 years ago
parent 2e8663a1b0
commit 042535778b

@ -176,6 +176,15 @@ typedef void (^ProfileManagerFailureBlock)(NSError *error);
#pragma mark - Local Profile
- (OWSUserProfile *)localUserProfile
{
__block OWSUserProfile *userProfile;
[LKStorage writeSyncWithBlock:^(YapDatabaseReadWriteTransaction *transaction) {
userProfile = [self getLocalUserProfileWithTransaction:transaction];
} error:nil];
return userProfile;
}
- (OWSUserProfile *)getLocalUserProfileWithTransaction:(YapDatabaseReadWriteTransaction *)transaction
{
@synchronized(self)

Loading…
Cancel
Save