| 281 | } |
| 282 | |
| 283 | void ChatView::onChannelSave(lv_event_t* e) { |
| 284 | auto* self = static_cast<ChatView*>(lv_event_get_user_data(e)); |
| 285 | auto* text = lv_textarea_get_text(self->channelInput); |
| 286 | if (text && strlen(text) > 0) { |
| 287 | self->app->switchChannel(std::string(text)); |
| 288 | } |
| 289 | self->hideChannelSelector(); |
| 290 | } |
| 291 | |
| 292 | void ChatView::onChannelCancel(lv_event_t* e) { |
| 293 | auto* self = static_cast<ChatView*>(lv_event_get_user_data(e)); |
nothing calls this directly
no test coverage detected