Skip to content

Instantly share code, notes, and snippets.

@thejhh
Created August 25, 2021 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thejhh/e2f02fea821873f2142047f9873b0ad9 to your computer and use it in GitHub Desktop.
Save thejhh/e2f02fea821873f2142047f9873b0ad9 to your computer and use it in GitHub Desktop.
List Matrix rooms by latest room state
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