diff --git a/bindings/matrix-sdk-ffi/src/room.rs b/bindings/matrix-sdk-ffi/src/room.rs index 8a4813000..bfe3d896d 100644 --- a/bindings/matrix-sdk-ffi/src/room.rs +++ b/bindings/matrix-sdk-ffi/src/room.rs @@ -161,21 +161,6 @@ impl Room { self.inner.active_room_call_participants().iter().map(|u| u.to_string()).collect() } - /// For rooms one is invited to, retrieves the room member information for - /// the user who invited the logged-in user to a room. - pub async fn inviter(&self) -> Option { - if self.inner.state() == RoomState::Invited { - self.inner - .invite_details() - .await - .ok() - .and_then(|a| a.inviter) - .and_then(|m| m.try_into().ok()) - } else { - None - } - } - /// Forces the currently active room key, which is used to encrypt messages, /// to be rotated. /// diff --git a/bindings/matrix-sdk-ffi/src/room_list.rs b/bindings/matrix-sdk-ffi/src/room_list.rs index a566dac29..08edd7814 100644 --- a/bindings/matrix-sdk-ffi/src/room_list.rs +++ b/bindings/matrix-sdk-ffi/src/room_list.rs @@ -573,24 +573,6 @@ impl RoomListItem { self.inner.inner_room().state().into() } - /// Builds a `Room` FFI from an invited room without initializing its - /// internal timeline. - /// - /// An error will be returned if the room is a state different than invited. - /// - /// ⚠️ Holding on to this room instance after it has been joined is not - /// safe. Use `full_room` instead. - #[deprecated(note = "Please use `preview_room` instead.")] - fn invited_room(&self) -> Result, RoomListError> { - if !matches!(self.membership(), Membership::Invited) { - return Err(RoomListError::IncorrectRoomMembership { - expected: vec![Membership::Invited], - actual: self.membership(), - }); - } - Ok(Arc::new(Room::new(self.inner.inner_room().clone()))) - } - /// Builds a `RoomPreview` from a room list item. This is intended for /// invited, knocked or banned rooms. async fn preview_room(&self, via: Vec) -> Result, ClientError> {