mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Direct message rooms should be encrypted from creation (#29)
This commit is contained in:
parent
0ed1d53946
commit
11625262f1
3 changed files with 110 additions and 9 deletions
18
src/base.rs
18
src/base.rs
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue