forked from mirror/monocles_chat_clean
Fix NPE
(cherry picked from commit 2a2903f8d784766b2b133657ea132855ad71ae1d)
This commit is contained in:
parent
fb73a8c9ab
commit
70de21785f
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue