Merge pull request #882 from pangeachat/sentry

Sentry issue fixes
pull/1476/head
ggurdin 1 year ago committed by GitHub
commit 5528ba70db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -142,7 +142,7 @@ class OverlayMessageTextState extends State<OverlayMessageText> {
widget.overlayController.onClickOverlayMessageToken(
tokenPosition.token!,
);
setState(() {});
if (mounted) setState(() {});
},
text: substring,
style: style.merge(

@ -45,8 +45,8 @@ class TtsController {
await tts.awaitSpeakCompletion(true);
final voices = await tts.getVoices;
availableLangCodes = (voices as List)
final voices = (await tts.getVoices) as List?;
availableLangCodes = (voices ?? [])
.map((v) {
// on iOS / web, the codes are in 'locale', but on Android, they are in 'name'
final nameCode = v['name']?.split("-").first;

Loading…
Cancel
Save