mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Re-activate EntityCaps integration test
This commit is contained in:
parent
1f7770b831
commit
7655ac17f2
16 changed files with 358 additions and 181 deletions
|
@ -45,7 +45,6 @@ import org.jivesoftware.smack.packet.Presence;
|
|||
import org.jivesoftware.smack.packet.Stanza;
|
||||
import org.jivesoftware.smack.roster.AbstractPresenceEventListener;
|
||||
import org.jivesoftware.smack.roster.Roster;
|
||||
import org.jivesoftware.smack.roster.RosterEntry;
|
||||
import org.jivesoftware.smack.roster.SubscribeListener;
|
||||
import org.jivesoftware.smackx.disco.ServiceDiscoveryManager;
|
||||
import org.jivesoftware.smackx.disco.packet.DiscoverInfo;
|
||||
|
@ -353,10 +352,7 @@ public final class IoTProvisioningManager extends Manager {
|
|||
}
|
||||
|
||||
public boolean iAmFriendOf(BareJid otherJid) {
|
||||
RosterEntry entry = roster.getEntry(otherJid);
|
||||
if (entry == null) return false;
|
||||
|
||||
return entry.canSeeHisPresence();
|
||||
return roster.iAmSubscribedTo(otherJid);
|
||||
}
|
||||
|
||||
public void sendFriendshipRequest(BareJid bareJid) throws NotConnectedException, InterruptedException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue