mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Bump JXMPP to 0.5.0
This commit is contained in:
parent
f633313c4a
commit
183c605278
8 changed files with 13 additions and 13 deletions
|
@ -204,7 +204,7 @@ public final class IoTProvisioningManager extends Manager {
|
|||
|
||||
// Handle <clearCache/> request.
|
||||
Jid from = iqRequest.getFrom();
|
||||
LruCache<BareJid, Void> cache = negativeFriendshipRequestCache.get(from);
|
||||
LruCache<BareJid, Void> cache = negativeFriendshipRequestCache.lookup(from);
|
||||
if (cache != null) {
|
||||
cache.clear();
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ public final class IoTProvisioningManager extends Manager {
|
|||
* @throws InterruptedException
|
||||
*/
|
||||
public boolean isFriend(Jid provisioningServer, BareJid friendInQuestion) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
|
||||
LruCache<BareJid, Void> cache = negativeFriendshipRequestCache.get(provisioningServer);
|
||||
LruCache<BareJid, Void> cache = negativeFriendshipRequestCache.lookup(provisioningServer);
|
||||
if (cache != null && cache.containsKey(friendInQuestion)) {
|
||||
// We hit a cached negative isFriend response for this provisioning server.
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue