Fix assert in backup import.

pull/1/head
Matthew Chen 6 years ago
parent f7842dd2aa
commit 02150efa27

@ -224,7 +224,7 @@ NSString *const kOWSBackup_KeychainService = @"kOWSBackup_KeychainService";
contents.localProfileAvatarItem = localProfileAvatarItems.firstObject;
if ([localProfileName isKindOfClass:[NSString class]]) {
contents.localProfileName = localProfileName;
} else {
} else if (localProfileName) {
OWSFailDebug(@"Invalid localProfileName: %@", [localProfileName class]);
}

Loading…
Cancel
Save