From 6617946fbdc0a6a44a9007a8a6ad24d34cb5aebe Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 15 Nov 2020 20:49:48 +0100 Subject: [PATCH] fixed bug causing missing of statistics update in channels, and missing of update when publish key is received --- .../src/gui/gxschannels/GxsChannelDialog.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelDialog.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelDialog.cpp index 09dec15c7..1a63186b6 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelDialog.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelDialog.cpp @@ -64,21 +64,21 @@ void GxsChannelDialog::handleEvent_main_thread(std::shared_ptr ev if(e) 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::READ_STATUS_CHANGED: // [[fallthrough]]; - updateGroupStatisticsReal(e->mChannelGroupId); // update the list immediately + updateGroupStatisticsReal(e->mChannelGroupId);// update the list immediately break; - case RsChannelEventCode::NEW_CHANNEL: // [[fallthrough]]; - case RsChannelEventCode::SUBSCRIBE_STATUS_CHANGED: + case RsChannelEventCode::RECEIVED_PUBLISH_KEY: // [[fallthrough]]; + case RsChannelEventCode::NEW_CHANNEL: // [[fallthrough]]; + case RsChannelEventCode::SUBSCRIBE_STATUS_CHANGED:// reloads group summary (calling GxsGroupFrameDialog parent method) updateDisplay(true); break; - case RsChannelEventCode::STATISTICS_CHANGED: - updateGroupStatistics(e->mChannelGroupId); - break; - default: break; }