fix: don't show send button if error in recording dialog (#5079)

This commit is contained in:
ggurdin 2026-01-06 11:43:24 -05:00 committed by GitHub
parent 2c176c052d
commit 663d4649e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,7 +218,10 @@ class RecordingDialogState extends State<RecordingDialog> {
),
),
),
if (error != true)
// #Pangea
// if (error != true)
if (error == null)
// Pangea#
CupertinoDialogAction(
onPressed: _stopAndSend,
child: Text(L10n.of(context).send),
@ -238,7 +241,10 @@ class RecordingDialogState extends State<RecordingDialog> {
),
),
),
if (error != true)
// #Pangea
// if (error != true)
if (error == null)
// Pangea#
TextButton(
onPressed: _stopAndSend,
child: Text(L10n.of(context).send),