From 547a0ea114fd6ef01be8012f2bd5b448d7248ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Fri, 24 Apr 2026 09:11:07 +0200 Subject: [PATCH] feat(ffi): Add `RoomInfo::is_dm` field With this, the clients won't have to manually check on their side if a room is a DM or not --- bindings/matrix-sdk-ffi/src/room/room_info.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/matrix-sdk-ffi/src/room/room_info.rs b/bindings/matrix-sdk-ffi/src/room/room_info.rs index 5069087a1..60acf3712 100644 --- a/bindings/matrix-sdk-ffi/src/room/room_info.rs +++ b/bindings/matrix-sdk-ffi/src/room/room_info.rs @@ -64,6 +64,7 @@ pub struct RoomInfo { topic: Option, avatar_url: Option, is_direct: bool, + is_dm: bool, /// Whether the room is public or not, based on the join rules. /// /// Can be `None` if the join rules state event is not available for this @@ -160,6 +161,7 @@ impl RoomInfo { topic: room.topic(), avatar_url: room.avatar_url().map(Into::into), is_direct: room.is_direct().await?, + is_dm: room.is_dm().await?, is_public: room.is_public(), is_space: room.is_space(), successor_room: room.successor_room().map(Into::into),