mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-16 17:13:58 -05:00
async markRead in posted to make it faster
This commit is contained in:
parent
537957a2ea
commit
7fe5d390e4
1 changed files with 4 additions and 4 deletions
|
|
@ -732,11 +732,11 @@ void RsPostedPostsModel::setAllMsgReadStatus(bool read)
|
||||||
for(uint32_t i=0;i<mPosts.size();++i)
|
for(uint32_t i=0;i<mPosts.size();++i)
|
||||||
pairs.push_back(RsGxsGrpMsgIdPair(mPosts[i].mMeta.mGroupId,mPosts[i].mMeta.mMsgId));
|
pairs.push_back(RsGxsGrpMsgIdPair(mPosts[i].mMeta.mGroupId,mPosts[i].mMeta.mMsgId));
|
||||||
|
|
||||||
RsThread::async([read,pairs]()
|
|
||||||
{
|
|
||||||
// Call blocking API
|
// Call blocking API
|
||||||
|
|
||||||
for(auto& p:pairs)
|
for(auto& p:pairs)
|
||||||
|
RsThread::async([read,p]()
|
||||||
|
{
|
||||||
rsPosted->setPostReadStatus(p,read);
|
rsPosted->setPostReadStatus(p,read);
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue