mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-04 15:45:58 +01:00
Use new XMPP connection method.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2021 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
a6e5b853e9
commit
1d1a60c00a
1 changed files with 2 additions and 1 deletions
|
@ -55,6 +55,7 @@ package org.jivesoftware.smack;
|
||||||
import org.jivesoftware.smack.packet.Registration;
|
import org.jivesoftware.smack.packet.Registration;
|
||||||
import org.jivesoftware.smack.packet.IQ;
|
import org.jivesoftware.smack.packet.IQ;
|
||||||
import org.jivesoftware.smack.filter.*;
|
import org.jivesoftware.smack.filter.*;
|
||||||
|
import org.jivesoftware.smack.util.StringUtils;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
@ -205,7 +206,7 @@ public class AccountManager {
|
||||||
Registration reg = new Registration();
|
Registration reg = new Registration();
|
||||||
reg.setType(IQ.Type.SET);
|
reg.setType(IQ.Type.SET);
|
||||||
reg.setTo(connection.getHost());
|
reg.setTo(connection.getHost());
|
||||||
reg.setUsername(connection.getUsername());
|
reg.setUsername(StringUtils.parseName(connection.getUser()));
|
||||||
reg.setPassword(newPassword);
|
reg.setPassword(newPassword);
|
||||||
PacketFilter filter = new AndFilter(new PacketIDFilter(reg.getPacketID()),
|
PacketFilter filter = new AndFilter(new PacketIDFilter(reg.getPacketID()),
|
||||||
new PacketTypeFilter(IQ.class));
|
new PacketTypeFilter(IQ.class));
|
||||||
|
|
Loading…
Reference in a new issue