diff --git a/matrix_sdk_base/src/rooms/normal.rs b/matrix_sdk_base/src/rooms/normal.rs index 54d06a50..82e9429e 100644 --- a/matrix_sdk_base/src/rooms/normal.rs +++ b/matrix_sdk_base/src/rooms/normal.rs @@ -535,7 +535,11 @@ impl RoomInfo { } /// The number of active members (invited + joined) in the room. + /// + /// The return value is saturated at `u64::MAX`. pub fn active_members_count(&self) -> u64 { - self.summary.joined_member_count + self.summary.invited_member_count + self.summary + .joined_member_count + .saturating_add(self.summary.invited_member_count) } }