base_client: prev_content deserialization TODO for if/when to mutate the event
parent
eedf4e72d1
commit
20de6f6aea
|
@ -380,6 +380,8 @@ impl Room {
|
||||||
///
|
///
|
||||||
/// Returns true if the joined member list changed, false otherwise.
|
/// Returns true if the joined member list changed, false otherwise.
|
||||||
pub fn handle_membership(&mut self, event: &MemberEvent) -> bool {
|
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() {
|
match event.membership_change() {
|
||||||
MembershipChange::Invited | MembershipChange::Joined => self.add_member(event),
|
MembershipChange::Invited | MembershipChange::Joined => self.add_member(event),
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Reference in New Issue