Add command for setting room history visibility (#328)

This commit is contained in:
Ulyssa 2024-08-18 00:33:45 -07:00 committed by GitHub
parent df3896df9c
commit 3003f0a528
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 48 additions and 0 deletions

View file

@ -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),