mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
async markRead in posted to make it faster
This commit is contained in:
parent
537957a2ea
commit
7fe5d390e4
@ -732,13 +732,13 @@ 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)
|
||||
for(auto& p:pairs)
|
||||
RsThread::async([read,p]()
|
||||
{
|
||||
rsPosted->setPostReadStatus(p,read);
|
||||
} );
|
||||
} );
|
||||
}
|
||||
void RsPostedPostsModel::setMsgReadStatus(const QModelIndex& i,bool read_status)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user