base_client: prev_content deserialization TODO for if/when to mutate the event
This commit is contained in:
parent
eedf4e72d1
commit
20de6f6aea
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,8 @@ impl Room {
|
|||
///
|
||||
/// Returns true if the joined member list changed, false otherwise.
|
||||
pub fn handle_membership(&mut self, event: &MemberEvent) -> bool {
|
||||
// TODO this would not be handled correctly as all the MemberEvents have the `prev_content`
|
||||
// inside of `unsigned` field
|
||||
match event.membership_change() {
|
||||
MembershipChange::Invited | MembershipChange::Joined => self.add_member(event),
|
||||
_ => {
|
||||
|
|
Loading…
Reference in a new issue