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;
|
return null;
|
||||||
}
|
}
|
||||||
final filename = content.tryGet<String>('filename');
|
final filename = content.tryGet<String>('filename');
|
||||||
final body = content.tryGet<String>('body');
|
final body = calcUnlocalizedBody(hideReply: true, plaintextBody: true);
|
||||||
|
|
||||||
if (filename != body &&
|
if (filename != body && filename != null && body.isNotEmpty) {
|
||||||
body != null &&
|
|
||||||
filename != null &&
|
|
||||||
body.isNotEmpty) {
|
|
||||||
final formattedBody = content.tryGet<String>('formatted_body');
|
|
||||||
if (formattedBody != null && formattedBody.isNotEmpty) {
|
|
||||||
return formattedBody;
|
|
||||||
}
|
|
||||||
return body;
|
return body;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue