MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / displayMessage

Method displayMessage

Tactility/Source/app/chat/ChatView.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void 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
187void ChatView::refreshMessageList() {
188 if (!msgList || !state) return;

Callers 2

onReceiveMethod · 0.80
sendMessageMethod · 0.80

Calls 1

getCurrentChannelMethod · 0.80

Tested by

no test coverage detected