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

@ -62,7 +62,7 @@ void GxsForumsDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> eve
case RsForumEventCode::NEW_MESSAGE:
case RsForumEventCode::UPDATED_MESSAGE: // [[fallthrough]];
case RsForumEventCode::READ_STATUS_CHANGED:
updateMessageSummaryList(e->mForumGroupId);
updateGroupStatisticsReal(e->mForumGroupId); // update the list immediately
break;
case RsForumEventCode::NEW_FORUM: // [[fallthrough]];
@ -71,7 +71,7 @@ void GxsForumsDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> eve
break;
case RsForumEventCode::STATISTICS_CHANGED:
updateGroupStatistics(e->mForumGroupId);
updateGroupStatistics(e->mForumGroupId); // update the list when redraw less often than once every 2 mins
break;
default: