summary refs log tree commit diff
path: root/src/ChatPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-30 15:52:14 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-30 15:52:14 +0300
commitb9521b08094595b16338d2476d6ee7665eed33bb (patch)
tree63b83582e984aaade1700d5085cf2be91904ea58 /src/ChatPage.cc
parentAllow handling of incomplete /sync responses (#67) (diff)
downloadnheko-b9521b08094595b16338d2476d6ee7665eed33bb.tar.xz
Stop sync timer after logout
Silence errors from redacted events
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r--src/ChatPage.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc

index 3134f820..3d3a3876 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc
@@ -264,6 +264,10 @@ ChatPage::setOwnAvatar(const QPixmap &img) void ChatPage::syncFailed(const QString &msg) { + // Stop if sync is not active. e.g user is logged out. + if (client_->getHomeServer().isEmpty()) + return; + qWarning() << "Sync error:" << msg; sync_timer_->start(sync_interval_ * 5); }