ffi: Put CreateRoomParameters back into the UDL file

… to restore the default values of some fields.
This commit is contained in:
Jonas Platte
2023-03-15 12:57:33 +01:00
committed by Jonas Platte
parent b1074e400e
commit e4e9efb7d9
2 changed files with 11 additions and 1 deletions

View File

@@ -149,6 +149,17 @@ interface SlidingSyncBuilder {
SlidingSync build();
};
dictionary CreateRoomParameters {
string name;
string? topic = null;
boolean is_encrypted;
boolean is_direct = false;
RoomVisibility visibility;
RoomPreset preset;
sequence<string>? invite = null;
string? avatar = null;
};
enum RoomVisibility {
/// Indicates that the room will be shown in the published room list.
"Public",

View File

@@ -522,7 +522,6 @@ impl Client {
}
}
#[derive(uniffi::Record)]
pub struct CreateRoomParameters {
pub name: String,
pub topic: Option<String>,