fix nested transaction crash

This commit is contained in:
ryanzhao 2021-09-30 09:30:30 +10:00
parent 3a84593de9
commit e91469fe0e
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ extension Storage {
guard let userPublicKey = getUserPublicKey() else { return nil } guard let userPublicKey = getUserPublicKey() else { return nil }
var result: Contact? var result: Contact?
Storage.read { transaction in Storage.read { transaction in
result = Storage.shared.getContact(with: userPublicKey) result = Storage.shared.getContact(with: userPublicKey, using: transaction)
} }
return result return result
} }