Direct message rooms should be encrypted from creation (#29)

This commit is contained in:
Ulyssa 2023-03-03 16:37:11 -08:00
parent 0ed1d53946
commit 11625262f1
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
3 changed files with 110 additions and 9 deletions

View file

@ -131,6 +131,24 @@ pub enum MessageAction {
Unreact(Option<String>),
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum CreateRoomType {
/// A direct message room.
Direct(OwnedUserId),
}
bitflags::bitflags! {
pub struct CreateRoomFlags: u32 {
const NONE = 0b00000000;
/// Make the room public.
const PUBLIC = 0b00000001;
/// Encrypt this room.
const ENCRYPTED = 0b00000010;
}
}
bitflags::bitflags! {
pub struct DownloadFlags: u32 {
const NONE = 0b00000000;