Skip to content

Commit

Permalink
Pass max. Rocket.Chat server ID length to instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
exul committed Nov 23, 2019
1 parent 889046a commit 81912d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/matrix-rocketchat/handlers/matrix/command_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,11 @@ impl<'a> CommandHandler<'a> {
} else {
connected_servers.iter().fold("".to_string(), |init, rs| init + &format!("* {}\n", rs.rocketchat_url))
};
t!(["admin_room", "connection_instructions"]).with_vars(vec![("as_url", as_url), ("server_list", server_list)])
t!(["admin_room", "connection_instructions"]).with_vars(vec![
("as_url", as_url),
("server_list", server_list),
("max_rocketchat_server_id_length", MAX_ROCKETCHAT_SERVER_ID_LENGTH.to_string()),
])
}
};

Expand Down

0 comments on commit 81912d2

Please sign in to comment.