Alert dialog button logic, update dialog on message receipt

This commit is contained in:
Dan Paulat 2022-10-16 23:29:59 -05:00
parent b24acb7642
commit ad7f3674d6
4 changed files with 98 additions and 22 deletions

View file

@ -137,9 +137,10 @@ void TextEventManager::Impl::HandleMessage(
}
else if (std::find_if(it->second.cbegin(),
it->second.cend(),
[=](auto& storedMessage) {
return message->wmo_header() ==
storedMessage->wmo_header();
[=](auto& storedMessage)
{
return *message->wmo_header().get() ==
*storedMessage->wmo_header().get();
}) == it->second.cend())
{
// If there was a matching event, and this message has not been stored