access disco over caching mechanism instead of querying db
This commit is contained in:
parent
70497318dd
commit
3f65b0e985
|
@ -1027,7 +1027,7 @@ public class XmppConnection implements Runnable {
|
||||||
final String ver = caps == null ? null : caps.getAttribute("ver");
|
final String ver = caps == null ? null : caps.getAttribute("ver");
|
||||||
ServiceDiscoveryResult discoveryResult = null;
|
ServiceDiscoveryResult discoveryResult = null;
|
||||||
if (hash != null && ver != null) {
|
if (hash != null && ver != null) {
|
||||||
discoveryResult = mXmppConnectionService.databaseBackend.findDiscoveryResult(hash, ver);
|
discoveryResult = mXmppConnectionService.getCachedServiceDiscoveryResult(new Pair<>(hash, ver));
|
||||||
}
|
}
|
||||||
if (discoveryResult == null) {
|
if (discoveryResult == null) {
|
||||||
sendServiceDiscoveryInfo(account.getServer());
|
sendServiceDiscoveryInfo(account.getServer());
|
||||||
|
|
Loading…
Reference in New Issue