From fe3b6d6ffdc2e6d899dcf64d1e97a6aa53fdef5f Mon Sep 17 00:00:00 2001 From: lancebord Date: Sat, 7 Mar 2026 20:05:24 -0500 Subject: chat name colors --- src/tui/app.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/tui/app.rs') diff --git a/src/tui/app.rs b/src/tui/app.rs index 0b5d77e..82342c0 100644 --- a/src/tui/app.rs +++ b/src/tui/app.rs @@ -7,8 +7,6 @@ pub struct ChatLine { pub is_system: bool, /// true = NOTICE pub is_notice: bool, - /// true = this is our own message - pub is_self: bool, } /// All mutable state the TUI needs to render and respond to input @@ -46,13 +44,12 @@ impl AppState { } /// Push a chat message - pub fn push_message(&mut self, nick: &str, text: &str, is_self: bool) { + pub fn push_message(&mut self, nick: &str, text: &str) { self.messages.push(ChatLine { nick: nick.to_string(), text: text.to_string(), is_system: false, is_notice: false, - is_self, }); } @@ -63,7 +60,6 @@ impl AppState { text: text.to_string(), is_system: true, is_notice: false, - is_self: false, }); } -- cgit v1.2.3-59-g8ed1b