mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-06 06:53:32 -04:00
ffi: Put CreateRoomParameters back into the UDL file
… to restore the default values of some fields.
This commit is contained in:
committed by
Jonas Platte
parent
b1074e400e
commit
e4e9efb7d9
@@ -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",
|
||||
|
||||
@@ -522,7 +522,6 @@ impl Client {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(uniffi::Record)]
|
||||
pub struct CreateRoomParameters {
|
||||
pub name: String,
|
||||
pub topic: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user