Added update of channel item when meta data changed

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7429 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-07-04 22:17:38 +00:00
parent 60a67846b0
commit 1c03fb0344
2 changed files with 5 additions and 2 deletions

View File

@ -166,7 +166,9 @@ GxsFeedItem::~GxsFeedItem()
void GxsFeedItem::fillDisplay(bool /*complete*/) void GxsFeedItem::fillDisplay(bool /*complete*/)
{ {
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &msgs = mUpdateBroadcastBase->getMsgIds(); std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > msgs;
mUpdateBroadcastBase->getAllMsgIds(msgs);
if (!msgs.empty()) if (!msgs.empty())
{ {
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >::const_iterator mit = msgs.find(groupId()); std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >::const_iterator mit = msgs.find(groupId());

View File

@ -119,7 +119,8 @@ void GxsChannelPostsWidget::updateDisplay(bool complete)
/* Do we need to fill all posts? */ /* Do we need to fill all posts? */
requestPosts(mChannelId); requestPosts(mChannelId);
} else { } else {
const std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > &msgs = getMsgIds(); std::map<RsGxsGroupId, std::vector<RsGxsMessageId> > msgs;
getAllMsgIds(msgs);
if (!msgs.empty()) if (!msgs.empty())
{ {
std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >::const_iterator mit = msgs.find(mChannelId); std::map<RsGxsGroupId, std::vector<RsGxsMessageId> >::const_iterator mit = msgs.find(mChannelId);