mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Add command for setting room history visibility (#328)
This commit is contained in:
parent
df3896df9c
commit
3003f0a528
3 changed files with 48 additions and 0 deletions
|
@ -369,6 +369,9 @@ impl<'de> Visitor<'de> for SortUserVisitor {
|
|||
/// A room property.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub enum RoomField {
|
||||
/// The room's history visibility.
|
||||
History,
|
||||
|
||||
/// The room name.
|
||||
Name,
|
||||
|
||||
|
@ -636,6 +639,10 @@ pub type MessageReactions = HashMap<OwnedEventId, (String, OwnedUserId)>;
|
|||
/// Errors encountered during application use.
|
||||
#[derive(thiserror::Error, Debug)]
|
||||
pub enum IambError {
|
||||
/// An invalid history visibility was specified.
|
||||
#[error("Invalid history visibility setting: {0}")]
|
||||
InvalidHistoryVisibility(String),
|
||||
|
||||
/// An invalid notification level was specified.
|
||||
#[error("Invalid notification level: {0}")]
|
||||
InvalidNotificationLevel(String),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue