-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RoomInfo
loses content, m.room.create
not stored in raw format
#247
Comments
m.room.create
not stored in raw formatRoomInfo
loses content, m.room.create
not stored in raw format
Is this true? As far as I can tell we're storing everything in This mentions If new fields should be added to the |
Hm I only saw state events being stored in the store. Is that including the |
Well Here's some proof that cargo run --example state_inspector --features="sled_state_store" ~/.weechat/matrix-rust/localhost/ get-state '!GttWlUVQWSLJlXiTMc:morpheus.localhost' 'm.room.create'
Finished dev [unoptimized + debuginfo] target(s) in 0.07s
Running `/home/poljar/werk/matrix/nio-rust/target/debug/examples/state_inspector /home/poljar/.weechat/matrix-rust/localhost/ get-state ''\!'GttWlUVQWSLJlXiTMc:morpheus.localhost' m.room.create`
Some(
Raw::<ruma_events::enums::AnySyncStateEvent> {
json: RawValue({
"type":"m.room.create",
"sender":"@example:morpheus.localhost",
"content":{
"room_version":"5",
"creator":"@example:morpheus.localhost"
},
"state_key":"",
"origin_server_ts":1591626808369,
"unsigned":{
"age":29959107097
},
"event_id":"$Rywa1ExYalO5m-jwjplTc4emJOhxcifAdD2nqowW2ow"
}),
},
) As mentioned, migrations for this need to load the |
Thanks for the clarification, should've taken a closer look, I guess this can be closed then since adding new fields to |
Currently the
m.room.create
event isn't stored in its raw format. Given thecontent
of that event might change over time it should be stored in its raw format.Currently that's a bug affecting space rooms where the content
type
is lostRelated hotfix commit from @MTRNord: MTRNord@85c6d76
The text was updated successfully, but these errors were encountered: