From 20de6f6aea6db55418a39ab7fedee52a4febeb69 Mon Sep 17 00:00:00 2001 From: Devin R Date: Thu, 21 May 2020 10:27:29 -0400 Subject: [PATCH] base_client: prev_content deserialization TODO for if/when to mutate the event --- matrix_sdk_base/src/models/room.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/matrix_sdk_base/src/models/room.rs b/matrix_sdk_base/src/models/room.rs index 554c5b90..093975e1 100644 --- a/matrix_sdk_base/src/models/room.rs +++ b/matrix_sdk_base/src/models/room.rs @@ -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), _ => {