added proper loading of comments in Boards

This commit is contained in:
csoler 2020-08-13 14:29:11 +02:00
parent 2bdb389200
commit 28568621a1

View File

@ -58,6 +58,16 @@ BoardPostDisplayWidget::BoardPostDisplayWidget(const RsPostedPost& post, Display
ui->topLayout->setAlignment(Qt::AlignTop);
ui->arrowsLayout->addStretch();
ui->arrowsLayout->setAlignment(Qt::AlignTop);
if(display_flags & SHOW_COMMENTS)
{
ui->commentsWidget->setTokenService(rsPosted->getTokenService(),rsPosted);
std::set<RsGxsMessageId> post_versions ;
post_versions.insert(post.mMeta.mMsgId) ;
ui->commentsWidget->commentLoad(post.mMeta.mGroupId, post_versions,mPost.mMeta.mMsgId);
}
}
void BoardPostDisplayWidget::setCommentsSize(int comNb)