mirror of https://github.com/poljar/matrix-nio.git
394 lines
16 KiB
JSON
394 lines
16 KiB
JSON
{
|
|
"device_one_time_keys_count": {},
|
|
"next_batch": "s526_47314_0_7_1_1_1_11444_1",
|
|
"device_lists": {
|
|
"changed": [
|
|
"@example:example.org"
|
|
],
|
|
"left": []
|
|
},
|
|
|
|
"rooms": {
|
|
"invite": {},
|
|
"join": {
|
|
"!SVkFJHzfwvuaIEawgC:localhost": {
|
|
"account_data": {
|
|
"events": [
|
|
{
|
|
"type": "m.fully_read",
|
|
"content": {
|
|
"event_id": "event_id_2"
|
|
}
|
|
},
|
|
{
|
|
"type": "m.tag",
|
|
"content": {
|
|
"tags": {
|
|
"u.test": {
|
|
"order": 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"ephemeral": {
|
|
"events": [
|
|
{
|
|
"content": {
|
|
"$151680659217152dPKjd:localhost": {
|
|
"m.read": {
|
|
"@example:localhost": {
|
|
"ts": 1516809890615
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"type": "m.receipt"
|
|
}
|
|
]
|
|
},
|
|
"state": {
|
|
"events": [
|
|
{
|
|
"content": {
|
|
"join_rule": "public"
|
|
},
|
|
"event_id": "$15139375514WsgmR:localhost",
|
|
"origin_server_ts": 1513937551539,
|
|
"sender": "@example:localhost",
|
|
"state_key": "",
|
|
"type": "m.room.join_rules",
|
|
"unsigned": {
|
|
"age": 7034220355
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"avatar_url": null,
|
|
"displayname": "example",
|
|
"membership": "join"
|
|
},
|
|
"event_id": "$151800140517rfvjc:localhost",
|
|
"membership": "join",
|
|
"origin_server_ts": 1518001405556,
|
|
"sender": "@example:localhost",
|
|
"state_key": "@example:localhost",
|
|
"type": "m.room.member",
|
|
"unsigned": {
|
|
"age": 2970366338,
|
|
"replaces_state": "$151800111315tsynI:localhost"
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"history_visibility": "shared"
|
|
},
|
|
"event_id": "$15139375515VaJEY:localhost",
|
|
"origin_server_ts": 1513937551613,
|
|
"sender": "@example:localhost",
|
|
"state_key": "",
|
|
"type": "m.room.history_visibility",
|
|
"unsigned": {
|
|
"age": 7034220281
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"creator": "@example:localhost"
|
|
},
|
|
"event_id": "$15139375510KUZHi:localhost",
|
|
"origin_server_ts": 1513937551203,
|
|
"sender": "@example:localhost",
|
|
"state_key": "",
|
|
"type": "m.room.create",
|
|
"unsigned": {
|
|
"age": 7034220691
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"aliases": [
|
|
"#tutorial:localhost"
|
|
]
|
|
},
|
|
"event_id": "$15139375516NUgtD:localhost",
|
|
"origin_server_ts": 1513937551720,
|
|
"sender": "@example:localhost",
|
|
"state_key": "localhost",
|
|
"type": "m.room.aliases",
|
|
"unsigned": {
|
|
"age": 7034220174
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"topic": "\ud83d\ude00"
|
|
},
|
|
"event_id": "$151957878228ssqrJ:localhost",
|
|
"origin_server_ts": 1519578782185,
|
|
"sender": "@example:localhost",
|
|
"state_key": "",
|
|
"type": "m.room.topic",
|
|
"unsigned": {
|
|
"age": 1392989709,
|
|
"prev_content": {
|
|
"topic": "test"
|
|
},
|
|
"prev_sender": "@example:localhost",
|
|
"replaces_state": "$151957069225EVYKm:localhost"
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"ban": 50,
|
|
"events": {
|
|
"m.room.avatar": 50,
|
|
"m.room.canonical_alias": 50,
|
|
"m.room.history_visibility": 100,
|
|
"m.room.name": 50,
|
|
"m.room.power_levels": 100
|
|
},
|
|
"events_default": 0,
|
|
"invite": 0,
|
|
"kick": 50,
|
|
"redact": 50,
|
|
"state_default": 50,
|
|
"users": {
|
|
"@example:localhost": 100
|
|
},
|
|
"users_default": 0
|
|
},
|
|
"event_id": "$15139375512JaHAW:localhost",
|
|
"origin_server_ts": 1513937551359,
|
|
"sender": "@example:localhost",
|
|
"state_key": "",
|
|
"type": "m.room.power_levels",
|
|
"unsigned": {
|
|
"age": 7034220535
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"alias": "#tutorial:localhost"
|
|
},
|
|
"event_id": "$15139375513VdeRF:localhost",
|
|
"origin_server_ts": 1513937551461,
|
|
"sender": "@example:localhost",
|
|
"state_key": "",
|
|
"type": "m.room.canonical_alias",
|
|
"unsigned": {
|
|
"age": 7034220433
|
|
}
|
|
},
|
|
{
|
|
"content": {
|
|
"avatar_url": null,
|
|
"displayname": "example2",
|
|
"membership": "join"
|
|
},
|
|
"event_id": "$152034824468gOeNB:localhost",
|
|
"membership": "join",
|
|
"origin_server_ts": 1520348244605,
|
|
"sender": "@example2:localhost",
|
|
"state_key": "@example2:localhost",
|
|
"type": "m.room.member",
|
|
"unsigned": {
|
|
"age": 623527289,
|
|
"prev_content": {
|
|
"membership": "leave"
|
|
},
|
|
"prev_sender": "@example:localhost",
|
|
"replaces_state": "$152034819067QWJxM:localhost"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"timeline": {
|
|
"events": [
|
|
{
|
|
"content": {
|
|
"body": "baba",
|
|
"format": "org.matrix.custom.html",
|
|
"formatted_body": "<strong>baba</strong>",
|
|
"msgtype": "m.text"
|
|
},
|
|
"event_id": "$152037280074GZeOm:localhost",
|
|
"origin_server_ts": 1520372800469,
|
|
"sender": "@example:localhost",
|
|
"type": "m.room.message",
|
|
"unsigned": {
|
|
"age": 598971425
|
|
}
|
|
}
|
|
],
|
|
"limited": true,
|
|
"prev_batch": "t392-516_47314_0_7_1_1_1_11444_1"
|
|
},
|
|
"unread_notifications": {
|
|
"highlight_count": 1,
|
|
"notification_count": 11
|
|
}
|
|
}
|
|
},
|
|
"leave": {}
|
|
},
|
|
|
|
"to_device": {
|
|
"events": []
|
|
},
|
|
|
|
"presence": {
|
|
"events": [
|
|
{
|
|
"type": "m.presence",
|
|
"sender": "@example:localhost",
|
|
"content": {
|
|
"presence": "online",
|
|
"last_active_ago": 1337,
|
|
"currently_active": true,
|
|
"status_msg": "I am here."
|
|
}
|
|
},
|
|
{
|
|
"type": "m.presence",
|
|
"sender": "@example2:localhost",
|
|
"content": {
|
|
"presence": "offline",
|
|
"last_active_ago": 1337,
|
|
"currently_active": false,
|
|
"status_msg": "I am gone."
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"account_data": {
|
|
"events": [
|
|
{
|
|
"type": "m.push_rules",
|
|
"content": {
|
|
"global": {
|
|
"override": [
|
|
{
|
|
"actions": [
|
|
"dont_notify"
|
|
],
|
|
"conditions": [
|
|
{
|
|
"key": "content.msgtype",
|
|
"kind": "event_match",
|
|
"pattern": "m.notice"
|
|
}
|
|
],
|
|
"default": true,
|
|
"enabled": false,
|
|
"rule_id": ".m.rule.suppress_notices"
|
|
}
|
|
],
|
|
"content": [
|
|
{
|
|
"actions": [
|
|
"notify",
|
|
"do_special_thing",
|
|
{
|
|
"set_tweak": "sound",
|
|
"value": "default"
|
|
},
|
|
{
|
|
"set_tweak": "highlight"
|
|
}
|
|
],
|
|
"default": true,
|
|
"enabled": true,
|
|
"pattern": "alice",
|
|
"rule_id": ".m.rule.contains_user_name"
|
|
}
|
|
],
|
|
"room": [],
|
|
"sender": [],
|
|
"underride": [
|
|
{
|
|
"actions": [
|
|
"coalesce",
|
|
{
|
|
"set_tweak": "sound",
|
|
"value": "ring"
|
|
},
|
|
{
|
|
"set_tweak": "highlight",
|
|
"value": false
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"kind": "special_kind"
|
|
},
|
|
{
|
|
"key": "type",
|
|
"kind": "event_match",
|
|
"pattern": "m.call.invite"
|
|
}
|
|
],
|
|
"default": true,
|
|
"enabled": true,
|
|
"rule_id": ".m.rule.special_call"
|
|
},
|
|
{
|
|
"actions": [
|
|
"notify"
|
|
],
|
|
"conditions": [
|
|
{
|
|
"key": "room",
|
|
"kind": "sender_notification_permission"
|
|
},
|
|
{
|
|
"is": "<10",
|
|
"kind": "room_member_count"
|
|
},
|
|
{
|
|
"key": "type",
|
|
"kind": "event_match",
|
|
"pattern": "m.room.message"
|
|
}
|
|
],
|
|
"default": true,
|
|
"enabled": true,
|
|
"rule_id": ".m.rule.room_less_than_10_room_perm"
|
|
},
|
|
{
|
|
"actions": [
|
|
"notify",
|
|
{
|
|
"set_tweak": "sound",
|
|
"value": "default"
|
|
},
|
|
{
|
|
"set_tweak": "highlight",
|
|
"value": false
|
|
}
|
|
],
|
|
"conditions": [
|
|
{
|
|
"is": "2",
|
|
"kind": "room_member_count"
|
|
},
|
|
{
|
|
"key": "type",
|
|
"kind": "event_match",
|
|
"pattern": "m.room.message"
|
|
}
|
|
],
|
|
"default": true,
|
|
"enabled": true,
|
|
"rule_id": ".m.rule.room_one_to_one"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|