forked from mirror/monocles_chat
remove work arounds for nimbuzz.com
This commit is contained in:
parent
48107fbf44
commit
b8f0147329
2 changed files with 1 additions and 13 deletions
|
@ -5,9 +5,6 @@ import java.util.Arrays;
|
|||
import java.util.List;
|
||||
|
||||
public class Patches {
|
||||
public static final List<String> DISCO_EXCEPTIONS = Arrays.asList(
|
||||
"nimbuzz.com"
|
||||
);
|
||||
public static final List<String> ENCRYPTION_EXCEPTIONS = Arrays.asList(
|
||||
"support@monocles.de"
|
||||
);
|
||||
|
|
|
@ -1982,16 +1982,7 @@ public class XmppConnection implements Runnable {
|
|||
}
|
||||
Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": starting service discovery");
|
||||
mPendingServiceDiscoveries.set(0);
|
||||
if (!waitForDisco
|
||||
|| Patches.DISCO_EXCEPTIONS.contains(
|
||||
account.getJid().getDomain().toEscapedString())) {
|
||||
Log.d(
|
||||
Config.LOGTAG,
|
||||
account.getJid().asBareJid() + ": do not wait for service discovery");
|
||||
mWaitForDisco.set(false);
|
||||
} else {
|
||||
mWaitForDisco.set(true);
|
||||
}
|
||||
mWaitForDisco.set(waitForDisco);
|
||||
lastDiscoStarted = SystemClock.elapsedRealtime();
|
||||
mXmppConnectionService.scheduleWakeUpCall(
|
||||
Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode());
|
||||
|
|
Loading…
Add table
Reference in a new issue