Cleanup, fixed offline cache relay when starting in offline mode

This commit is contained in:
2020-02-11 19:35:23 +01:00
parent 577ee6364d
commit 48e1d791c6
4 changed files with 23 additions and 44 deletions

View File

@ -163,7 +163,7 @@ public class Startup {
chatWindow.initContent(client, localDb, writeProxy);
// Relay unread messages from cache
if (cache != null) cache.relay();
if (cache != null && client.isOnline()) cache.relay();
try {
new StatusTrayIcon(chatWindow).show();