trunk fix

This commit is contained in:
HarukiToreda
2025-11-10 01:43:34 -05:00
parent 9441f0c143
commit 46391ff5e3
2 changed files with 18 additions and 55 deletions

View File

@@ -332,9 +332,7 @@ void MessageStore::deleteOldestMessageInChannel(uint8_t channel)
void MessageStore::deleteAllMessagesInChannel(uint8_t channel)
{
auto pred = [channel](const StoredMessage &m) {
return m.type == MessageType::BROADCAST && m.channelIndex == channel;
};
auto pred = [channel](const StoredMessage &m) { return m.type == MessageType::BROADCAST && m.channelIndex == channel; };
eraseIf(liveMessages, pred, false /* delete ALL, not just first */);
saveToFlash();
}