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

Method switchChannel

Tactility/Source/app/chat/ChatApp.cpp:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168void ChatApp::switchChannel(const std::string& chatChannel) {
169 const auto trimmedChannel = chatChannel.substr(0, MAX_TARGET_LEN);
170 state.setCurrentChannel(trimmedChannel);
171 settings.chatChannel = trimmedChannel;
172 saveSettings(settings);
173
174 {
175 auto lock = lvgl::getSyncLock()->asScopedLock();
176 lock.lock();
177 view.refreshMessageList();
178 }
179}
180
181extern const AppManifest manifest = {
182 .appId = "Chat",

Callers 1

onChannelSaveMethod · 0.80

Calls 6

saveSettingsFunction · 0.85
getSyncLockFunction · 0.85
setCurrentChannelMethod · 0.80
asScopedLockMethod · 0.80
refreshMessageListMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected