From de941f60369141f1fb8e84e0f8f5cd23d0507742 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 21 May 2020 08:41:04 +0200 Subject: [PATCH] use escaped jid for invites --- .../java/eu/siacs/conversations/generator/MessageGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java b/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java index 1a4454cc5..e05cbae71 100644 --- a/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/MessageGenerator.java @@ -217,7 +217,7 @@ public class MessageGenerator extends AbstractGenerator { Element x = new Element("x"); x.setAttribute("xmlns", "http://jabber.org/protocol/muc#user"); Element invite = new Element("invite"); - invite.setAttribute("to", contact.asBareJid().toString()); + invite.setAttribute("to", contact.asBareJid()); x.addChild(invite); packet.addChild(x); return packet;