Skip to content

Commit

Permalink
Merge pull request #639 from squidowl/feat/topic-nickname
Browse files Browse the repository at this point in the history
Show formatted nickname in topic instead of full nickname.
  • Loading branch information
casperstorm authored Nov 8, 2024
2 parents 1006a2c + 9c1ffc7 commit 4129b9b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/buffer/channel/topic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ pub fn view<'a>(

let user = if let Some(user) = users.iter().find(|user| user.nickname() == nick) {
user_context::view(
selectable_text(who).style(|theme| {
theme::selectable_text::nickname(
theme,
user.nick_color(theme.colors(), config.buffer.nickname.color),
false,
)
}),
selectable_text(user.display(config.buffer.channel.nicklist.show_access_levels))
.style(|theme| {
theme::selectable_text::nickname(
theme,
user.nick_color(theme.colors(), config.buffer.nickname.color),
false,
)
}),
server,
Some(channel),
user,
Expand Down

0 comments on commit 4129b9b

Please sign in to comment.