1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Remove deprecated methods from XMPPConnection

This commit is contained in:
Florian Schmaus 2017-08-11 23:50:32 +02:00
parent a203d3198c
commit 0602ae064a
5 changed files with 5 additions and 116 deletions

View file

@ -62,7 +62,7 @@ public class ServiceAdministrationManager extends Manager {
}
public RemoteCommand addUser() {
return addUser(connection().getServiceName());
return addUser(connection().getXMPPServiceDomain());
}
public RemoteCommand addUser(Jid service) {
@ -90,7 +90,7 @@ public class ServiceAdministrationManager extends Manager {
}
public RemoteCommand deleteUser() {
return deleteUser(connection().getServiceName());
return deleteUser(connection().getXMPPServiceDomain());
}
public RemoteCommand deleteUser(Jid service) {

View file

@ -151,7 +151,7 @@ public final class PingManager extends Manager {
private boolean isValidErrorPong(Jid destinationJid, XMPPErrorException xmppErrorException) {
// If it is an error error response and the destination was our own service, then this must mean that the
// service responded, i.e. is up and pingable.
if (destinationJid.equals(connection().getServiceName())) {
if (destinationJid.equals(connection().getXMPPServiceDomain())) {
return true;
}