ManagerImpl m = null;
try {
- final var accountPathFinal = accountPath;
m = new ManagerImpl(account,
pathConfig,
- new AccountFileUpdaterImpl(accountsStore, accountPathFinal),
+ new AccountFileUpdaterImpl(accountsStore, accountPath),
serviceEnvironmentConfig,
userAgent);
account = null;
try {
m.refreshPreKeys();
} catch (Exception e) {
- logger.error("Failed to refresh pre keys.");
+ logger.error("Failed to refresh pre keys.", e);
}
logger.debug("Requesting sync data");
m.requestAllSyncData();
} catch (Exception e) {
logger.error(
- "Failed to request sync messages from linked device, data can be requested again with `sendSyncRequest`.");
+ "Failed to request sync messages from linked device, data can be requested again with `sendSyncRequest`.",
+ e);
}
if (newManagerListener != null) {
}
try (signalAccount) {
- if (signalAccount.isMasterDevice()) {
- logger.debug("Account is a master device.");
+ if (signalAccount.isPrimaryDevice()) {
+ logger.debug("Account is a primary device.");
return false;
}
if (signalAccount.isRegistered()