ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Add support for the initial_state parameter #127

Closed mujx closed 7 years ago

mujx commented 7 years ago

I am using, temporarily, my fork with the missing stripped state events just to make this work but I get the following error when ruma tries to deserialize one of the stripped events.

Can't parse body to the struct
Some(Syntax(InvalidType(Map), 0, 0)) 

Any ideas on what might be causing this error?

mujx commented 7 years ago

The missing tests for topic, name, avatar and history_visibility should be written later when the appropriate endpoints like #111 are implemented.

I couldn't find any use case for m.room.member because it would only be useful for invites or bans, but it does't provide an id for the user we want to invite or ban. Also invites are already handled by the invite parameter.