mirror of
https://github.com/youwen5/iamb.git
synced 2025-06-20 05:39:52 -07:00
Add message slash commands (#317)
This commit is contained in:
parent
653287478e
commit
04480eda1b
7 changed files with 352 additions and 101 deletions
|
@ -401,7 +401,7 @@ impl RoomState {
|
|||
},
|
||||
RoomField::CanonicalAlias => {
|
||||
let Some(alias_to_destroy) = room.canonical_alias() else {
|
||||
let msg = format!("This room has no canonical alias to unset");
|
||||
let msg = "This room has no canonical alias to unset";
|
||||
|
||||
return Ok(vec![(Action::ShowInfoMessage(msg.into()), ctx)]);
|
||||
};
|
||||
|
@ -500,11 +500,9 @@ impl RoomState {
|
|||
Some(can) => format!("Canonical alias: {can}"),
|
||||
}
|
||||
},
|
||||
RoomField::Tag(_) => {
|
||||
format!("Cannot currently show value for a tag")
|
||||
},
|
||||
RoomField::Tag(_) => "Cannot currently show value for a tag".into(),
|
||||
RoomField::Alias(_) => {
|
||||
format!("Cannot show a single alias; use `:room aliases show` instead.")
|
||||
"Cannot show a single alias; use `:room aliases show` instead.".into()
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue