Move prev_content in test data to top level for now.
Until Ruma fixes it upstream, see hoist_room_event_prev_content for more information.master
parent
84fc662614
commit
f447c55fcb
|
@ -208,6 +208,7 @@ lazy_static! {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Move `prev_content` into `unsigned` once ruma supports it
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
pub static ref MEMBER: JsonValue = json!({
|
pub static ref MEMBER: JsonValue = json!({
|
||||||
"content": {
|
"content": {
|
||||||
|
@ -221,14 +222,14 @@ lazy_static! {
|
||||||
"sender": "@example:localhost",
|
"sender": "@example:localhost",
|
||||||
"state_key": "@example:localhost",
|
"state_key": "@example:localhost",
|
||||||
"type": "m.room.member",
|
"type": "m.room.member",
|
||||||
|
"prev_content": {
|
||||||
|
"avatar_url": null,
|
||||||
|
"displayname": "example",
|
||||||
|
"membership": "invite"
|
||||||
|
},
|
||||||
"unsigned": {
|
"unsigned": {
|
||||||
"age": 297036,
|
"age": 297036,
|
||||||
"replaces_state": "$151800111315tsynI:localhost",
|
"replaces_state": "$151800111315tsynI:localhost"
|
||||||
"prev_content": {
|
|
||||||
"avatar_url": null,
|
|
||||||
"displayname": "example",
|
|
||||||
"membership": "invite"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -552,6 +553,7 @@ lazy_static! {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Move `prev_content` into `unsigned` once ruma supports it
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
pub static ref TOPIC: JsonValue = json!({
|
pub static ref TOPIC: JsonValue = json!({
|
||||||
"content": {
|
"content": {
|
||||||
|
@ -562,11 +564,11 @@ lazy_static! {
|
||||||
"sender": "@example:localhost",
|
"sender": "@example:localhost",
|
||||||
"state_key": "",
|
"state_key": "",
|
||||||
"type": "m.room.topic",
|
"type": "m.room.topic",
|
||||||
|
"prev_content": {
|
||||||
|
"topic": "test"
|
||||||
|
},
|
||||||
"unsigned": {
|
"unsigned": {
|
||||||
"age": 1392989,
|
"age": 1392989,
|
||||||
"prev_content": {
|
|
||||||
"topic": "test"
|
|
||||||
},
|
|
||||||
"prev_sender": "@example:localhost",
|
"prev_sender": "@example:localhost",
|
||||||
"replaces_state": "$151957069225EVYKm:localhost"
|
"replaces_state": "$151957069225EVYKm:localhost"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue