Skip to content

An open-source cross-platform alternative to AirDrop

feat: do not offer verify page if not encrypted

Tien Do Nama075ce9f8cf1
diff --git a/app/lib/pages/receive_page.dart b/app/lib/pages/receive_page.dart
index a503c262..21519c52 100644
--- a/app/lib/pages/receive_page.dart
+++ b/app/lib/pages/receive_page.dart
@@ -163,7 +163,7 @@ class _ReceivePageState extends State<ReceivePage> with Refena {
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextButton.icon(
- onPressed: () async => await context.push(
+ onPressed: !vm.sender.https ? null : () async => await context.push(
() => VerifyPage(
fingerprint: CombinedFingerprint.load(context, vm.sender.fingerprint),
),
diff --git a/app/lib/pages/send_page.dart b/app/lib/pages/send_page.dart
index 2ce5622f..4076228d 100644
--- a/app/lib/pages/send_page.dart
+++ b/app/lib/pages/send_page.dart
@@ -145,7 +145,7 @@ class _SendPageState extends State<SendPage> with Refena {
child: Padding(
padding: const EdgeInsets.only(top: 8),
child: TextButton.icon(
- onPressed: () async => await context.push(
+ onPressed: !targetDevice.https ? null : () async => await context.push(
() => VerifyPage(
fingerprint: CombinedFingerprint.load(context, targetDevice.fingerprint),
),