feat: do not offer verify page if not encrypted

This commit is contained in:
Tien Do Nam
2026-08-05 17:22:26 +02:00
parent 33532c9f0f
commit a075ce9f8c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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),
),
+1 -1
View File
@@ -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),
),