summary refs log tree commit diff
path: root/src/MatrixClient.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-07 17:15:38 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-05-07 17:15:38 +0300
commit1f90c58076b9c40a609c88b9cdad51dd55da6954 (patch)
tree5a45ae1b5b1ca62cf8665aa892de904481dac215 /src/MatrixClient.cc
parentAdd matrix::events namespace (diff)
downloadnheko-1f90c58076b9c40a609c88b9cdad51dd55da6954.tar.xz
Use timeline to retrieve state events
- Rooms without any history will be shown.
- Room's state will be kept in sync and any updates will be visible.
Diffstat (limited to 'src/MatrixClient.cc')
-rw-r--r--src/MatrixClient.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc

index 6b4a81bb..f9d81f27 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc
@@ -194,10 +194,12 @@ void MatrixClient::onInitialSyncResponse(QNetworkReply *reply) try { response.deserialize(json); - emit initialSyncCompleted(response); } catch (DeserializationException &e) { qWarning() << "Sync malformed response" << e.what(); + return; } + + emit initialSyncCompleted(response); } void MatrixClient::onSyncResponse(QNetworkReply *reply)