fix nested transaction crash
This commit is contained in:
parent
3a84593de9
commit
e91469fe0e
|
@ -39,7 +39,7 @@ extension Storage {
|
|||
guard let userPublicKey = getUserPublicKey() else { return nil }
|
||||
var result: Contact?
|
||||
Storage.read { transaction in
|
||||
result = Storage.shared.getContact(with: userPublicKey)
|
||||
result = Storage.shared.getContact(with: userPublicKey, using: transaction)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue