summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-11 16:34:43 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-01-11 16:34:43 +0200
commit9521efab7ee324009c57d4adca50d93d98165f4a (patch)
tree7461693f2666805480f702b5da997295e896515b /src
parentFilter out content in sync that is currently unhandled (#198) (diff)
downloadnheko-9521efab7ee324009c57d4adca50d93d98165f4a.tar.xz
Lint
[ci skip]
Diffstat (limited to 'src')
-rw-r--r--src/MatrixClient.cc36
1 files changed, 21 insertions, 15 deletions
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,