fix: Reply voice message displays a broken html body

This commit is contained in:
Christian Kußowski 2026-02-14 08:31:07 +01:00
parent 83e9bedbc1
commit da8336b1fe
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -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;