mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 14:10:54 -04:00
fixed proper comment number in channels feeds
This commit is contained in:
parent
51710c10a0
commit
9da1e1ce05
3 changed files with 7 additions and 7 deletions
|
@ -306,7 +306,7 @@ void GxsCommentTreeWidget::setup(RsTokenService *token_service, RsGxsCommentServ
|
||||||
mCommentService = comment_service;
|
mCommentService = comment_service;
|
||||||
mTokenQueue = new TokenQueue(token_service, this);
|
mTokenQueue = new TokenQueue(token_service, this);
|
||||||
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(customPopUpMenu(QPoint)));
|
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(customPopUpMenu(QPoint)));
|
||||||
connect(this, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), this, SLOT(setCurrentMsgId(QTreeWidgetItem*, QTreeWidgetItem*)));
|
connect(this, SIGNAL(currentItemChanged(QTreeWidgetItem*,QTreeWidgetItem*)), this, SLOT(setCurrentCommentMsgId(QTreeWidgetItem*, QTreeWidgetItem*)));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,12 +156,12 @@ void GxsFeedItem::requestComment()
|
||||||
opts.mReqType = GXS_REQUEST_TYPE_MSG_RELATED_DATA;
|
opts.mReqType = GXS_REQUEST_TYPE_MSG_RELATED_DATA;
|
||||||
opts.mOptions = RS_TOKREQOPT_MSG_THREAD | RS_TOKREQOPT_MSG_LATEST;
|
opts.mOptions = RS_TOKREQOPT_MSG_THREAD | RS_TOKREQOPT_MSG_LATEST;
|
||||||
|
|
||||||
RsGxsGrpMsgIdPair msgIdPair;
|
|
||||||
msgIdPair.first = groupId();
|
|
||||||
msgIdPair.second = messageId();
|
|
||||||
|
|
||||||
std::vector<RsGxsGrpMsgIdPair> msgIds;
|
std::vector<RsGxsGrpMsgIdPair> msgIds;
|
||||||
msgIds.push_back(msgIdPair);
|
|
||||||
|
for(uint32_t i=0;i<mMessageVersions.size();++i)
|
||||||
|
msgIds.push_back(std::make_pair(groupId(),mMessageVersions[i]));
|
||||||
|
|
||||||
|
msgIds.push_back(std::make_pair(groupId(),messageId()));
|
||||||
|
|
||||||
uint32_t token;
|
uint32_t token;
|
||||||
mLoadQueue->requestMsgRelatedInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, mTokenTypeComment);
|
mLoadQueue->requestMsgRelatedInfo(token, RS_TOKREQ_ANSTYPE_DATA, opts, msgIds, mTokenTypeComment);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue