mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-20 15:00:36 -04:00
fixed crash in setting posted items as read
This commit is contained in:
parent
2f2495455f
commit
082603917c
1 changed files with 1 additions and 5 deletions
|
@ -282,16 +282,12 @@ void BasePostedItem::readToggled(bool checked)
|
|||
if (mInFill) {
|
||||
return;
|
||||
}
|
||||
setReadStatus(false, checked);
|
||||
|
||||
RsThread::async([this,checked]()
|
||||
{
|
||||
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
||||
rsPosted->setPostReadStatus(msgPair, !checked);
|
||||
|
||||
RsQThreadUtils::postToObject( [checked,this]()
|
||||
{
|
||||
setReadStatus(false, checked);
|
||||
}, this );
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue