mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-24 07:00:57 -04:00
fixed 2 bugs in post display
This commit is contained in:
parent
141ee0b7e0
commit
dec1d3068b
4 changed files with 5 additions and 10 deletions
|
@ -780,6 +780,7 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
|
|||
}
|
||||
break;
|
||||
|
||||
case RsChannelEventCode::READ_STATUS_CHANGED:
|
||||
case RsChannelEventCode::NEW_MESSAGE:
|
||||
{
|
||||
if(e->mChannelGroupId == groupId())
|
||||
|
@ -821,7 +822,7 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
|
|||
|
||||
// 2 - update the model in the UI thread.
|
||||
|
||||
RsQThreadUtils::postToObject( [&post=posts[0],this]()
|
||||
RsQThreadUtils::postToObject( [post=posts[0],this]()
|
||||
{
|
||||
std::set<RsGxsFile> added_files,removed_files;
|
||||
|
||||
|
@ -847,10 +848,6 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
|
|||
ui->commentsDialog->refresh();
|
||||
break;
|
||||
|
||||
case RsChannelEventCode::READ_STATUS_CHANGED:
|
||||
mChannelPostsModel->triggerViewUpdate();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
|
@ -995,8 +992,6 @@ void GxsChannelPostsWidgetWithModel::updateData(bool update_group_data, bool upd
|
|||
|
||||
if(update_posts)
|
||||
{
|
||||
blank();
|
||||
|
||||
ui->postsTree->setPlaceholderText(tr("Loading..."));
|
||||
|
||||
mChannelPostsModel->updateChannel(groupId());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue