remove fallback content for message-corrections
All checks were successful
/ build (push) Successful in 6m55s

This commit is contained in:
Tristan 2026-02-18 19:37:24 +01:00
commit 7cacc638f1

View file

@ -696,6 +696,7 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
List<String> fallbacksToRemove = new ArrayList<>();
fallbacksToRemove.add("http://jabber.org/protocol/address");
fallbacksToRemove.add("urn:xmpp:message-correct:0");
if (getOob() != null || isGeoUri()) fallbacksToRemove.add(Namespace.OOB);
if (removeQuoteFallbacks) fallbacksToRemove.add("urn:xmpp:reply:0");
Pair<StringBuilder, Boolean> result = bodyMinusFallbacks(fallbacksToRemove.toArray(new String[0]));