Skip to content
Snippets Groups Projects
Commit d2df5918 authored by vjrj's avatar vjrj
Browse files

Get contact after scanning

parent 5b3466b7
No related branches found
No related tags found
No related merge requests found
......@@ -183,7 +183,8 @@ Future<void> onKeyScanned(BuildContext context, String scannedKey) async {
if (pay != null) {
logger('Scanned $pay');
final String result = extractPublicKey(pay.contact!.pubKey);
final Contact contact = Contact(pubKey: result);
final Contact contact = await ContactsCache().getContact(result);
final double? currentAmount = paymentCubit.state.amount;
paymentCubit.selectUser(contact);
if (pay.amount != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment