(cherry picked from commit 2a2903f8d784766b2b133657ea132855ad71ae1d)
This commit is contained in:
Stephen Paul Weber 2024-09-26 11:56:11 -05:00 committed by Arne
parent fb73a8c9ab
commit 70de21785f

View file

@ -773,10 +773,12 @@ public class MessageParser extends AbstractParser implements Consumer<im.convers
}
if (el.getName().equals("reply") && el.getNamespace() != null && el.getNamespace().equals("urn:xmpp:reply:0")) {
message.addPayload(el);
if (el.getAttribute("id") != null) {
for (final var parent : mXmppConnectionService.getMessageFuzzyIds(conversation, List.of(el.getAttribute("id"))).entrySet()) {
message.setInReplyTo(parent.getValue());
}
}
}
if (el.getName().equals("attention") && el.getNamespace() != null && el.getNamespace().equals("urn:xmpp:attention:0")) {
message.addPayload(el);
}