Highlight /me messages in the editor
This commit is contained in:
parent
15f957c160
commit
a85bdd306b
1 changed files with 6 additions and 1 deletions
|
|
@ -125,7 +125,12 @@ fn styled_content_me(content: &str) -> Styled {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn styled_editor_content(content: &str) -> Styled {
|
fn styled_editor_content(content: &str) -> Styled {
|
||||||
highlight_content(content, ContentStyle::default())
|
let style = if as_me(content).is_some() {
|
||||||
|
style_me()
|
||||||
|
} else {
|
||||||
|
ContentStyle::default()
|
||||||
|
};
|
||||||
|
highlight_content(content, style)
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Msg for SmallMessage {
|
impl Msg for SmallMessage {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue