|
|
|
@ -16,6 +16,7 @@ |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include <QDebug> |
|
|
|
|
#include <QJsonArray> |
|
|
|
|
#include <QJsonDocument> |
|
|
|
|
#include <QJsonObject> |
|
|
|
|
#include <QNetworkReply> |
|
|
|
@ -452,8 +453,13 @@ void MatrixClient::sendTextMessage(const QString &roomid, const QString &msg) no |
|
|
|
|
|
|
|
|
|
void MatrixClient::initialSync() noexcept |
|
|
|
|
{ |
|
|
|
|
QJsonArray excluded_event_types = { |
|
|
|
|
QString("m.room.member"), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
QJsonObject filter{{"room", |
|
|
|
|
QJsonObject{{"timeline", QJsonObject{{"limit", 70}}}, |
|
|
|
|
{"state", QJsonObject{{"not_types", excluded_event_types}}}, |
|
|
|
|
{"ephemeral", QJsonObject{{"limit", 0}}}}}, |
|
|
|
|
{"presence", QJsonObject{{"limit", 0}}}}; |
|
|
|
|
|
|
|
|
|