Skip to main content

matrix_sdk_test/test_json/
members.rs

1//! Example responses to `GET /_matrix/client/v3/rooms/{roomId}/members`
2
3use std::sync::LazyLock;
4
5use serde_json::{Value as JsonValue, json};
6
7use super::DEFAULT_TEST_ROOM_ID;
8
9pub static MEMBERS: LazyLock<JsonValue> = LazyLock::new(|| {
10    json!({
11        "chunk": [
12        {
13            "content": {
14                "avatar_url": null,
15                "displayname": "example",
16                "membership": "join"
17            },
18            "event_id": "$151800140517rfvjc:localhost",
19            "membership": "join",
20            "origin_server_ts": 151800140,
21            "room_id": *DEFAULT_TEST_ROOM_ID,
22            "sender": "@example:localhost",
23            "state_key": "@example:localhost",
24            "type": "m.room.member",
25            "unsigned": {
26                "age": 2970366,
27            }
28        }
29        ]
30    })
31});