| 173 | } |
| 174 | |
| 175 | void ChatView::displayMessage(const StoredMessage& msg) { |
| 176 | if (!msgList || !state) return; |
| 177 | |
| 178 | // Only show if matches current channel or broadcast |
| 179 | std::string channel = state->getCurrentChannel(); |
| 180 | if (!msg.target.empty() && msg.target != channel) { |
| 181 | return; |
| 182 | } |
| 183 | addMessageToList(msgList, msg); |
| 184 | lv_obj_scroll_to_y(msgList, LV_COORD_MAX, LV_ANIM_ON); |
| 185 | } |
| 186 | |
| 187 | void ChatView::refreshMessageList() { |
| 188 | if (!msgList || !state) return; |
no test coverage detected