fixing two oops

This commit is contained in:
William Jordan-Cooley 2024-05-15 11:01:20 -04:00
parent 326d2b5fbd
commit daaa83b00d
2 changed files with 8 additions and 11 deletions

View file

@ -3945,9 +3945,6 @@
"accuracy": "Accuracy",
"points": "Points",
"noPaymentInfo": "No payment info necessary!",
<<<<<<< Updated upstream
"updatePhoneOS": "You may need to update your device's OS version."
=======
"updatePhoneOS": "You may need to update your device's OS version.",
"wordsPerMinute": "Words per minute"
>>>>>>> Stashed changes
}

View file

@ -296,14 +296,14 @@ class PangeaMessageEvent {
return null;
}
// final SpeechToTextModel? speechToTextLocal = representations
// .firstWhereOrNull(
// (element) => element.content.speechToText != null,
// )
// ?.content
// .speechToText;
final SpeechToTextModel? speechToTextLocal = representations
.firstWhereOrNull(
(element) => element.content.speechToText != null,
)
?.content
.speechToText;
// if (speechToTextLocal != null) return speechToTextLocal;
if (speechToTextLocal != null) return speechToTextLocal;
final matrixFile = await _event.downloadAndDecryptAttachment();
// Pangea#