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)| {
|
|mut output, (alias, id)| {
|
||||||
writeln!(
|
writeln!(
|
||||||
output,
|
output,
|
||||||
"- #{}:{} -> {}",
|
"- `#{}` -> #{}:{}",
|
||||||
alias, server_name, id
|
alias, id, server_name
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
output
|
output
|
||||||
|
@ -957,10 +957,10 @@ impl Service {
|
||||||
|mut output, (alias, id)| {
|
|mut output, (alias, id)| {
|
||||||
writeln!(
|
writeln!(
|
||||||
output,
|
output,
|
||||||
"<li>#{}:{} -> {}</li>",
|
"<li><code>#{}</code> -> #{}:{}</li>",
|
||||||
escape_html(alias.as_ref()),
|
escape_html(alias.as_ref()),
|
||||||
server_name,
|
escape_html(id.as_ref()),
|
||||||
escape_html(id.as_ref())
|
server_name
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
output
|
output
|
||||||
|
@ -972,7 +972,7 @@ impl Service {
|
||||||
RoomMessageEventContent::text_html(plain, html)
|
RoomMessageEventContent::text_html(plain, html)
|
||||||
}
|
}
|
||||||
Err(err) => RoomMessageEventContent::text_plain(format!(
|
Err(err) => RoomMessageEventContent::text_plain(format!(
|
||||||
"Unable to list aliases: {}",
|
"Unable to list room aliases: {}",
|
||||||
err
|
err
|
||||||
)),
|
)),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue