Merge pull request #734 from pangeachat/hide-transcription-error-in-timeline
if send transcription file fails, don't show error audio message in t…
This commit is contained in:
commit
c72d2480b4
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,11 @@ 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) &&
|
||||
// hide unimportant state events
|
||||
(!AppConfig.hideUnimportantStateEvents ||
|
||||
!isState ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue