use escaped jid for invites

This commit is contained in:
Daniel Gultsch 2020-05-21 08:41:04 +02:00
parent 574bccfc59
commit de941f6036

View file

@ -217,7 +217,7 @@ public class MessageGenerator extends AbstractGenerator {
Element x = new Element("x"); Element x = new Element("x");
x.setAttribute("xmlns", "http://jabber.org/protocol/muc#user"); x.setAttribute("xmlns", "http://jabber.org/protocol/muc#user");
Element invite = new Element("invite"); Element invite = new Element("invite");
invite.setAttribute("to", contact.asBareJid().toString()); invite.setAttribute("to", contact.asBareJid());
x.addChild(invite); x.addChild(invite);
packet.addChild(x); packet.addChild(x);
return packet; return packet;