mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
fixed update of comment/unread comment count when a new version of a msg arrives
This commit is contained in:
parent
dec1d3068b
commit
e4910cf8fd
2 changed files with 13 additions and 2 deletions
|
|
@ -805,7 +805,6 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef TO_REMOVE
|
||||
// Need to call this in order to get the actual comment count. The previous call only retrieves the message, since we supplied the message ID.
|
||||
// another way to go would be to save the comment ids of the existing message and re-insert them before calling getChannelContent.
|
||||
|
||||
|
|
@ -818,7 +817,6 @@ void GxsChannelPostsWidgetWithModel::handleEvent_main_thread(std::shared_ptr<con
|
|||
// Normally, there's a single post in the "post" array. The function below takes a full array of posts however.
|
||||
|
||||
RsGxsChannelPostsModel::computeCommentCounts(posts,comments);
|
||||
#endif
|
||||
|
||||
// 2 - update the model in the UI thread.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue