fixed small bug causing read/unread and new msgs to not update immediately

This commit is contained in:
csoler 2020-04-12 23:07:42 +02:00
parent a8f94f9d74
commit 54f8ef1ffe
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
5 changed files with 7 additions and 8 deletions

View file

@ -65,9 +65,9 @@ void GxsChannelDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> ev
switch(e->mChannelEventCode)
{
case RsChannelEventCode::NEW_MESSAGE: // [[fallthrough]];
case RsChannelEventCode::UPDATED_MESSAGE:
case RsChannelEventCode::READ_STATUS_CHANGED:
updateMessageSummaryList(e->mChannelGroupId);
case RsChannelEventCode::UPDATED_MESSAGE: // [[fallthrough]];
case RsChannelEventCode::READ_STATUS_CHANGED: // [[fallthrough]];
updateGroupStatisticsReal(e->mChannelGroupId); // update the list immediately
break;
case RsChannelEventCode::RECEIVED_DISTANT_SEARCH_RESULT: