Commit 1064e68f authored by Alexander Ivanov's avatar Alexander Ivanov

Reconnect only when server side history storage mode changed. Fixes #101.

parent e510e180
......@@ -542,11 +542,11 @@ public class AccountManager implements OnLoadListener, OnWipeListener {
}
}
if (result.getArchiveMode() != archiveMode) {
reconnect = (result.getArchiveMode() == ArchiveMode.server) != (archiveMode == ArchiveMode.server);
result.setArchiveMode(archiveMode);
for (OnAccountArchiveModeChangedListener listener : application
.getManagers(OnAccountArchiveModeChangedListener.class))
listener.onAccountArchiveModeChanged(result);
reconnect = true;
}
if (changed && enabled) {
enabledAccounts.add(account);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment