forked from mirror/monocles_chat_clean
remove fallback content for message-corrections
All checks were successful
/ build (push) Successful in 6m55s
All checks were successful
/ build (push) Successful in 6m55s
This commit is contained in:
parent
2c7f9b6772
commit
7cacc638f1
1 changed files with 1 additions and 0 deletions
|
|
@ -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]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue