diff --git a/include/MatrixClient.h b/include/MatrixClient.h index 66b30dc..1a8ff12 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 05832c2..019e614 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,