Support leaving rooms (#45)

This commit is contained in:
Ulyssa 2023-04-28 16:52:33 -07:00
parent 50023bad40
commit a5c25f2487
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
9 changed files with 177 additions and 37 deletions

View file

@ -118,7 +118,9 @@ pub enum MessageAction {
React(String),
/// Redact a message, with an optional reason.
Redact(Option<String>),
///
/// The [bool] argument indicates whether to skip confirmation.
Redact(Option<String>, bool),
/// Reply to a message.
Reply,
@ -178,6 +180,7 @@ pub enum RoomAction {
InviteAccept,
InviteReject,
InviteSend(OwnedUserId),
Leave(bool),
Members(Box<CommandContext<ProgramContext>>),
Set(RoomField, String),
Unset(RoomField),