mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 07:59:29 -05:00
fixed bug causing missing of statistics update in channels, and missing of update when publish key is received
This commit is contained in:
parent
5957a262d3
commit
6617946fbd
@ -64,21 +64,21 @@ void GxsChannelDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> ev
|
|||||||
if(e)
|
if(e)
|
||||||
switch(e->mChannelEventCode)
|
switch(e->mChannelEventCode)
|
||||||
{
|
{
|
||||||
case RsChannelEventCode::NEW_MESSAGE: // [[fallthrough]];
|
case RsChannelEventCode::STATISTICS_CHANGED: // [[fallthrough]];
|
||||||
|
updateDisplay(true); // no breaks, on purpose!
|
||||||
|
|
||||||
|
case RsChannelEventCode::NEW_MESSAGE: // [[fallthrough]];
|
||||||
case RsChannelEventCode::UPDATED_MESSAGE: // [[fallthrough]];
|
case RsChannelEventCode::UPDATED_MESSAGE: // [[fallthrough]];
|
||||||
case RsChannelEventCode::READ_STATUS_CHANGED: // [[fallthrough]];
|
case RsChannelEventCode::READ_STATUS_CHANGED: // [[fallthrough]];
|
||||||
updateGroupStatisticsReal(e->mChannelGroupId); // update the list immediately
|
updateGroupStatisticsReal(e->mChannelGroupId);// update the list immediately
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RsChannelEventCode::NEW_CHANNEL: // [[fallthrough]];
|
case RsChannelEventCode::RECEIVED_PUBLISH_KEY: // [[fallthrough]];
|
||||||
case RsChannelEventCode::SUBSCRIBE_STATUS_CHANGED:
|
case RsChannelEventCode::NEW_CHANNEL: // [[fallthrough]];
|
||||||
|
case RsChannelEventCode::SUBSCRIBE_STATUS_CHANGED:// reloads group summary (calling GxsGroupFrameDialog parent method)
|
||||||
updateDisplay(true);
|
updateDisplay(true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RsChannelEventCode::STATISTICS_CHANGED:
|
|
||||||
updateGroupStatistics(e->mChannelGroupId);
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user