fix: Reply voice message displays a broken html body
This commit is contained in:
parent
83e9bedbc1
commit
da8336b1fe
1 changed files with 2 additions and 9 deletions
|
|
@ -12,16 +12,9 @@ extension FileDescriptionExtension on Event {
|
|||
return null;
|
||||
}
|
||||
final filename = content.tryGet<String>('filename');
|
||||
final body = content.tryGet<String>('body');
|
||||
final body = calcUnlocalizedBody(hideReply: true, plaintextBody: true);
|
||||
|
||||
if (filename != body &&
|
||||
body != null &&
|
||||
filename != null &&
|
||||
body.isNotEmpty) {
|
||||
final formattedBody = content.tryGet<String>('formatted_body');
|
||||
if (formattedBody != null && formattedBody.isNotEmpty) {
|
||||
return formattedBody;
|
||||
}
|
||||
if (filename != body && filename != null && body.isNotEmpty) {
|
||||
return body;
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue