Created
August 25, 2021 15:26
-
-
Save thejhh/e2f02fea821873f2142047f9873b0ad9 to your computer and use it in GitHub Desktop.
List Matrix rooms by latest room state
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const response : MatrixSyncResponseDTO = await this._client.sync({ | |
filter: { | |
presence: { | |
limit: 0 | |
}, | |
account_data: { | |
limit: 0 | |
}, | |
room: { | |
account_data: { | |
limit: 0 | |
}, | |
timeline: { | |
limit: 0 | |
}, | |
state: { | |
limit: 1, | |
include_redundant_members: true, | |
types: [ this._stateType ] | |
} | |
} | |
}, | |
full_state: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment