make rooms alias list command more nicer
room IDs in conduit have a server name attached to them already outputting the server name again just makes it look incorrect also add codeblock to the internal room ID portion Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
parent
54a3f47851
commit
e2ec2a98ba
1 changed files with 6 additions and 6 deletions
|
@ -944,8 +944,8 @@ impl Service {
|
|||
|mut output, (alias, id)| {
|
||||
writeln!(
|
||||
output,
|
||||
"- #{}:{} -> {}",
|
||||
alias, server_name, id
|
||||
"- `#{}` -> #{}:{}",
|
||||
alias, id, server_name
|
||||
)
|
||||
.unwrap();
|
||||
output
|
||||
|
@ -957,10 +957,10 @@ impl Service {
|
|||
|mut output, (alias, id)| {
|
||||
writeln!(
|
||||
output,
|
||||
"<li>#{}:{} -> {}</li>",
|
||||
"<li><code>#{}</code> -> #{}:{}</li>",
|
||||
escape_html(alias.as_ref()),
|
||||
server_name,
|
||||
escape_html(id.as_ref())
|
||||
escape_html(id.as_ref()),
|
||||
server_name
|
||||
)
|
||||
.unwrap();
|
||||
output
|
||||
|
@ -972,7 +972,7 @@ impl Service {
|
|||
RoomMessageEventContent::text_html(plain, html)
|
||||
}
|
||||
Err(err) => RoomMessageEventContent::text_plain(format!(
|
||||
"Unable to list aliases: {}",
|
||||
"Unable to list room aliases: {}",
|
||||
err
|
||||
)),
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue