insert the newest channel posts first and the oldest last (modified patch from Eugene Tooms)

This commit is contained in:
electron128 2015-12-31 14:02:51 +01:00
parent 8a41554754
commit 69f6bd0ea9

View File

@ -398,7 +398,7 @@ void GxsChannelPostsWidget::insertChannelPosts(std::vector<RsGxsChannelPost> &po
return;
}
std::vector<RsGxsChannelPost>::const_iterator it;
std::vector<RsGxsChannelPost>::const_reverse_iterator it;
int count = posts.size();
int pos = 0;
@ -407,7 +407,7 @@ void GxsChannelPostsWidget::insertChannelPosts(std::vector<RsGxsChannelPost> &po
ui->feedWidget->setSortingEnabled(false);
}
for (it = posts.begin(); it != posts.end(); ++it)
for (it = posts.rbegin(); it != posts.rend(); ++it)
{
if (thread && thread->stopped()) {
break;