mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
async markRead in posted to make it faster
This commit is contained in:
parent
537957a2ea
commit
7fe5d390e4
@ -732,11 +732,11 @@ void RsPostedPostsModel::setAllMsgReadStatus(bool read)
|
||||
for(uint32_t i=0;i<mPosts.size();++i)
|
||||
pairs.push_back(RsGxsGrpMsgIdPair(mPosts[i].mMeta.mGroupId,mPosts[i].mMeta.mMsgId));
|
||||
|
||||
RsThread::async([read,pairs]()
|
||||
{
|
||||
// Call blocking API
|
||||
|
||||
for(auto& p:pairs)
|
||||
RsThread::async([read,p]()
|
||||
{
|
||||
rsPosted->setPostReadStatus(p,read);
|
||||
} );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user