From 9c1ffc7a1682522110e778386a500d3125e9b6fc Mon Sep 17 00:00:00 2001 From: Casper Rogild Storm Date: Tue, 5 Nov 2024 21:57:40 +0100 Subject: [PATCH] Show formatted nickname in topic --- src/buffer/channel/topic.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/buffer/channel/topic.rs b/src/buffer/channel/topic.rs index 7b0f39ec0..d73c5cba1 100644 --- a/src/buffer/channel/topic.rs +++ b/src/buffer/channel/topic.rs @@ -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,