Exclude m.room.member events from initial sync
This commit is contained in:
parent
9e45a95d41
commit
1a82150aa8
@ -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}}}};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user