attempt at not reloading full channel data at every change

This commit is contained in:
csoler 2023-02-09 23:32:19 +01:00
parent c06da99757
commit 43fd84e777

View File

@ -760,15 +760,15 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
}
break;
case RsChannelEventCode::NEW_COMMENT: // [[fallthrough]];
case RsChannelEventCode::NEW_MESSAGE: // [[fallthrough]];
case RsChannelEventCode::NEW_MESSAGE:
{
if(e->mChannelGroupId == groupId())
updateDisplay(true,true);
}
break;
case RsChannelEventCode::NEW_VOTE: // [[fallthrough]];
case RsChannelEventCode::NEW_COMMENT: // [[fallthrough]];
case RsChannelEventCode::NEW_VOTE:
if(e->mChannelGroupId == groupId() && e->mChannelThreadId == ui->commentsDialog->messageId())
ui->commentsDialog->refresh();