mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
This needs a hash
This commit is contained in:
parent
23e00319ff
commit
085ec21040
@ -87,7 +87,7 @@ pub fn format_labels(ctx: CallContext) -> Result<JsObject, NapiError> {
|
||||
html.push_str("<span");
|
||||
match label.color {
|
||||
Some(color) => {
|
||||
write!(html, " data-mx-bg-color=\"{}\"", color).unwrap();
|
||||
write!(html, " data-mx-bg-color=\"#{}\"", color).unwrap();
|
||||
// Determine the constrast
|
||||
let color_rgb = parse_rgb(color)?;
|
||||
let contrast_color;
|
||||
|
Loading…
x
Reference in New Issue
Block a user