mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-17 09:34:10 -05:00
fixed forum msg item loading
This commit is contained in:
parent
6a0dda8cf7
commit
c0c9684adf
1 changed files with 3 additions and 7 deletions
|
|
@ -45,9 +45,6 @@
|
||||||
GxsForumMsgItem::GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome, bool autoUpdate) :
|
GxsForumMsgItem::GxsForumMsgItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId &groupId, const RsGxsMessageId &messageId, bool isHome, bool autoUpdate) :
|
||||||
GxsFeedItem(feedHolder, feedId, groupId, messageId, isHome, rsGxsForums, autoUpdate)
|
GxsFeedItem(feedHolder, feedId, groupId, messageId, isHome, rsGxsForums, autoUpdate)
|
||||||
{
|
{
|
||||||
mMessage.mMeta.mMsgId = messageId; // useful for uniqueIdentifier() before the post is actually loaded
|
|
||||||
mMessage.mMeta.mGroupId = groupId;
|
|
||||||
|
|
||||||
mLoadingStatus = NO_DATA;
|
mLoadingStatus = NO_DATA;
|
||||||
|
|
||||||
mLoadingGroup = false;
|
mLoadingGroup = false;
|
||||||
|
|
@ -160,14 +157,13 @@ void GxsForumMsgItem::loadGroup()
|
||||||
{
|
{
|
||||||
// 1 - get group data
|
// 1 - get group data
|
||||||
|
|
||||||
#ifdef DEBUG_FORUMS
|
#ifndef DEBUG_FORUMS
|
||||||
std::cerr << "Retrieving post data for post " << mThreadId << std::endl;
|
std::cerr << "Retrieving forum group data for forum " << groupId() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::vector<RsGxsForumGroup> groups;
|
std::vector<RsGxsForumGroup> groups;
|
||||||
const std::list<RsGxsGroupId> forumIds = { groupId() };
|
|
||||||
|
|
||||||
if(!rsGxsForums->getForumsInfo(forumIds,groups))
|
if(!rsGxsForums->getForumsInfo({ groupId() },groups))
|
||||||
{
|
{
|
||||||
RsErr() << "GxsForumGroupItem::loadGroup() ERROR getting data" << std::endl;
|
RsErr() << "GxsForumGroupItem::loadGroup() ERROR getting data" << std::endl;
|
||||||
mLoadingGroup = false;
|
mLoadingGroup = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue