From 9521efab7ee324009c57d4adca50d93d98165f4a Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 11 Jan 2018 16:34:43 +0200 Subject: [PATCH] Lint [ci skip] --- include/MatrixClient.h | 4 ++-- src/MatrixClient.cc | 36 +++++++++++++++++++++--------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/include/MatrixClient.h b/include/MatrixClient.h index 66b30dce..1a8ff12c 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h @@ -160,6 +160,6 @@ private: // Token to be used for the next sync. QString next_batch_; - // filter to be send as filter-param for (initial) /sync requests - QString filter_; + // filter to be send as filter-param for (initial) /sync requests + QString filter_; }; diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 05832c24..019e6141 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -42,30 +42,36 @@ MatrixClient::MatrixClient(QString server, QObject *parent) txn_id_ = settings.value("client/transaction_id", 1).toInt(); QJsonObject default_filter{ - {"room", - QJsonObject{ - {"include_leave", true}, - {"account_data", - QJsonObject{ - {"not_types", QJsonArray{"*"}}, - }, - }, - }, - },{"account_data", + { + "room", + QJsonObject{ + {"include_leave", true}, + { + "account_data", + QJsonObject{ + {"not_types", QJsonArray{"*"}}, + }, + }, + }, + }, + { + "account_data", QJsonObject{ {"not_types", QJsonArray{"*"}}, }, - },{"presence", + }, + { + "presence", QJsonObject{ {"not_types", QJsonArray{"*"}}, }, }, }; - filter_ = settings.value( - "client/sync_filter", - QJsonDocument(default_filter).toJson(QJsonDocument::Compact) - ).toString(); + filter_ = settings + .value("client/sync_filter", + QJsonDocument(default_filter).toJson(QJsonDocument::Compact)) + .toString(); connect(this, &QNetworkAccessManager::networkAccessibleChanged,