added missing code for marking all msgs as read/unread

This commit is contained in:
csoler 2020-09-27 23:21:03 +02:00
parent ff0836929d
commit 819035472d
3 changed files with 25 additions and 1 deletions

View file

@ -658,7 +658,13 @@ QIcon PostedListWidgetWithModel::groupIcon()
void PostedListWidgetWithModel::setAllMessagesReadDo(bool read, uint32_t &token)
{
std::cerr << __PRETTY_FUNCTION__ << ": not implemented" << std::endl;
if (groupId().isNull() || !IS_GROUP_SUBSCRIBED(mGroup.mMeta.mSubscribeFlags))
return;
QModelIndex src_index;
mPostedPostsModel->setAllMsgReadStatus(read);
}
void PostedListWidgetWithModel::openComments(const RsGxsMessageId& msgId)