disable removing of broken devices by default
This commit is contained in:
parent
dbda2afd6d
commit
fbbf1a37b4
|
@ -81,6 +81,8 @@ public final class Config {
|
||||||
public static final long MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000;
|
public static final long MILLISECONDS_IN_DAY = 24 * 60 * 60 * 1000;
|
||||||
|
|
||||||
public static final long OMEMO_AUTO_EXPIRY = 7 * MILLISECONDS_IN_DAY;
|
public static final long OMEMO_AUTO_EXPIRY = 7 * MILLISECONDS_IN_DAY;
|
||||||
|
public static final boolean REMOVE_BROKEN_DEVICES = false;
|
||||||
|
|
||||||
|
|
||||||
public static final boolean DISABLE_PROXY_LOOKUP = false; //useful to debug ibb
|
public static final boolean DISABLE_PROXY_LOOKUP = false; //useful to debug ibb
|
||||||
public static final boolean DISABLE_HTTP_UPLOAD = false;
|
public static final boolean DISABLE_HTTP_UPLOAD = false;
|
||||||
|
|
|
@ -804,6 +804,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
|
||||||
}
|
}
|
||||||
mXmppConnectionService.keyStatusUpdated(report);
|
mXmppConnectionService.keyStatusUpdated(report);
|
||||||
}
|
}
|
||||||
|
if (Config.REMOVE_BROKEN_DEVICES) {
|
||||||
Set<Integer> ownDeviceIds = new HashSet<>(getOwnDeviceIds());
|
Set<Integer> ownDeviceIds = new HashSet<>(getOwnDeviceIds());
|
||||||
boolean publish = false;
|
boolean publish = false;
|
||||||
for (Map.Entry<Integer, FetchStatus> entry : own.entrySet()) {
|
for (Map.Entry<Integer, FetchStatus> entry : own.entrySet()) {
|
||||||
|
@ -817,6 +818,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
|
||||||
publishOwnDeviceId(ownDeviceIds);
|
publishOwnDeviceId(ownDeviceIds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void buildSessionFromPEP(final AxolotlAddress address) {
|
private void buildSessionFromPEP(final AxolotlAddress address) {
|
||||||
Log.i(Config.LOGTAG, AxolotlService.getLogprefix(account) + "Building new session for " + address.toString());
|
Log.i(Config.LOGTAG, AxolotlService.getLogprefix(account) + "Building new session for " + address.toString());
|
||||||
|
|
Loading…
Reference in a new issue