From 953971980f7817784d31aa31b82f37461b47cafc Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Wed, 9 Feb 2022 13:58:40 -0800 Subject: [PATCH] Allow cwtch: prefix --- lib/views/addcontactview.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/views/addcontactview.dart b/lib/views/addcontactview.dart index 49edc309..d76cd2c4 100644 --- a/lib/views/addcontactview.dart +++ b/lib/views/addcontactview.dart @@ -153,7 +153,7 @@ class _AddContactViewState extends State { }, onChanged: (String importBundle) async { var profileOnion = Provider.of(context, listen: false).onion; - Provider.of(context, listen: false).cwtch.ImportBundle(profileOnion, importBundle); + Provider.of(context, listen: false).cwtch.ImportBundle(profileOnion, importBundle.replaceFirst("cwtch:", "")); Future.delayed(const Duration(milliseconds: 500), () { if (globalErrorHandler.importBundleSuccess) {