added comment explaining purpose of filter

This commit is contained in:
ggurdin 2024-10-11 15:38:30 -04:00
parent b630d5f1d2
commit 061fd361a6
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -21,6 +21,8 @@ extension IsStateExtension on Event {
(isState || !AppConfig.hideAllStateEvents) &&
// #Pangea
content.tryGet(ModelKey.transcription) == null &&
// if sending of transcription fails,
// don't show it as a errored audio event in timeline.
((unsigned?['extra_content']
as Map<String, dynamic>?)?[ModelKey.transcription] ==
null) &&