diff options
| author | 2026-03-07 20:05:24 -0500 | |
|---|---|---|
| committer | 2026-03-07 20:05:24 -0500 | |
| commit | fe3b6d6ffdc2e6d899dcf64d1e97a6aa53fdef5f (patch) | |
| tree | 0587bf3bd7836b08c0a733c98996017fae5a32b9 /src/tui/app.rs | |
| parent | account for wrapping in scroll (diff) | |
chat name colors
Diffstat (limited to 'src/tui/app.rs')
| -rw-r--r-- | src/tui/app.rs | 6 |
1 files changed, 1 insertions, 5 deletions
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, }); } |
