mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04:00
attempt at not reloading full channel data at every change
This commit is contained in:
parent
c06da99757
commit
43fd84e777
1 changed files with 3 additions and 3 deletions
|
@ -760,15 +760,15 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RsChannelEventCode::NEW_COMMENT: // [[fallthrough]];
|
case RsChannelEventCode::NEW_MESSAGE:
|
||||||
case RsChannelEventCode::NEW_MESSAGE: // [[fallthrough]];
|
|
||||||
{
|
{
|
||||||
if(e->mChannelGroupId == groupId())
|
if(e->mChannelGroupId == groupId())
|
||||||
updateDisplay(true,true);
|
updateDisplay(true,true);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case RsChannelEventCode::NEW_VOTE: // [[fallthrough]];
|
case RsChannelEventCode::NEW_COMMENT: // [[fallthrough]];
|
||||||
|
case RsChannelEventCode::NEW_VOTE:
|
||||||
|
|
||||||
if(e->mChannelGroupId == groupId() && e->mChannelThreadId == ui->commentsDialog->messageId())
|
if(e->mChannelGroupId == groupId() && e->mChannelThreadId == ui->commentsDialog->messageId())
|
||||||
ui->commentsDialog->refresh();
|
ui->commentsDialog->refresh();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue