deleted wrong to jid

fixes 
This commit is contained in:
Christian Schneppe 2019-09-06 21:51:30 +02:00
parent b33eaff4f4
commit f8a94ec52e

View file

@ -1033,7 +1033,6 @@ public class XmppConnection implements Runnable {
public void sendDeleteRequest() {
final IqPacket delete = new IqPacket(IqPacket.TYPE.SET);
delete.query(Namespace.REGISTER).addChild("remove");
delete.setTo(Jid.of(account.getServer()));
delete.setFrom(account.getJid().asBareJid());
sendUnmodifiedIqPacket(delete, (account, packet) -> {
if (packet.getType() == IqPacket.TYPE.TIMEOUT) {