mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Support leaving rooms (#45)
This commit is contained in:
parent
50023bad40
commit
a5c25f2487
9 changed files with 177 additions and 37 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue