change string replacement (fixes #42)
All checks were successful
/ build (push) Successful in 3m43s

This commit is contained in:
lookshe 2025-06-06 23:32:38 +02:00
commit 9fe3b01d66

View file

@ -632,7 +632,8 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
if (!result.second && aesgcm != null) {
return body.toString().replace(aesgcm, "");
} else if (!result.second && getOob() != null) {
return body.toString().replace(getOob().toString(), "");
// TODO: change string to replace if implementation in getOob() changes
return body.toString().replace(getFileParams().url, "");
} else if (!result.second && isGeoUri()) {
return "";
} else {