refactor: remove AttachImage tui event (#3191)

TuiEvent is supposed to be purely events that come from the "driver",
i.e. events from the terminal. Everything app-specific should be an
AppEvent. In this case, it didn't need to be an event at all.
This commit is contained in:
Jeremy Rose
2025-09-05 07:02:11 -07:00
committed by GitHub
parent 3f40fbc0a8
commit 323a5cb7e7
3 changed files with 12 additions and 43 deletions

View File

@@ -183,15 +183,6 @@ impl App {
},
)?;
}
TuiEvent::AttachImage {
path,
width,
height,
format_label,
} => {
self.chat_widget
.attach_image(path, width, height, format_label);
}
}
}
Ok(true)