mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 22:32:34 -04:00
fixed connexion between posted items and async API, and removed dead code and debug info
This commit is contained in:
parent
d3bd237cde
commit
5645d71699
13 changed files with 29 additions and 275 deletions
|
@ -182,10 +182,7 @@ void PostedItem::loadGroup()
|
|||
std::vector<RsPostedGroup> groups;
|
||||
const std::list<RsGxsGroupId> groupIds = { groupId() };
|
||||
|
||||
#warning Code needed in rsPosted
|
||||
#ifdef TODO
|
||||
if(!rsPosted->getPostedGroupInfo(groupIds,groups))
|
||||
#endif
|
||||
if(!rsPosted->getBoardsInfo(groupIds,groups))
|
||||
{
|
||||
RsErr() << "GxsPostedGroupItem::loadGroup() ERROR getting data" << std::endl;
|
||||
return;
|
||||
|
@ -220,10 +217,7 @@ void PostedItem::loadMessage()
|
|||
std::vector<RsPostedPost> posts;
|
||||
std::vector<RsGxsComment> comments;
|
||||
|
||||
#warning Code needed in rsPosted
|
||||
#ifdef TODO
|
||||
if(! rsPosted->getPostedContent( groupId(), std::set<RsGxsMessageId>( { messageId() } ),posts,comments))
|
||||
#endif
|
||||
if(! rsPosted->getBoardContent( groupId(), std::set<RsGxsMessageId>( { messageId() } ),posts,comments))
|
||||
{
|
||||
RsErr() << "PostedItem::loadMessage() ERROR getting data" << std::endl;
|
||||
return;
|
||||
|
@ -283,12 +277,9 @@ void PostedItem::loadComment()
|
|||
std::vector<RsPostedPost> posts;
|
||||
std::vector<RsGxsComment> comments;
|
||||
|
||||
#warning Code needed in rsPosted
|
||||
#ifdef TODO
|
||||
if(! rsPosted->getPostedContent( groupId(),msgIds,posts,comments))
|
||||
#endif
|
||||
if(! rsPosted->getBoardContent( groupId(),msgIds,posts,comments))
|
||||
{
|
||||
RsErr() << "GxsGxsChannelGroupItem::loadGroup() ERROR getting data" << std::endl;
|
||||
RsErr() << "PostedItem::loadGroup() ERROR getting data" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue