base_client: prev_content deserialization TODO for if/when to mutate the event

This commit is contained in:
Devin R 2020-05-21 10:27:29 -04:00
parent eedf4e72d1
commit 20de6f6aea

View file

@ -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),
_ => {