diff options
| author | 2026-03-08 14:14:27 -0400 | |
|---|---|---|
| committer | 2026-03-08 14:14:27 -0400 | |
| commit | 29c0682903248a0c33f2f2508f65c7eb7a6fc655 (patch) | |
| tree | 1f5f1a082d41dff66561af3c48f3ef517e3257bd | |
| parent | reduce redundant comments in the UI code (diff) | |
clear chat on join
| -rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index a1bf0a2..db1922f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -141,6 +141,7 @@ fn handle_input(text: &str, app: &mut AppState, client: &mut Client) -> bool { if !app.channel.is_empty() { client.part(&app.channel, None); } + app.messages.clear(); client.join(args.trim()); app.channel = args.trim().to_string(); } |
