mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-12 16:09:37 -05:00
fixed crash in setting posted items as read
This commit is contained in:
parent
2f2495455f
commit
082603917c
@ -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…
Reference in New Issue
Block a user