mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 11:01:22 -04:00
removed token system from GxsCommentDialog
This commit is contained in:
parent
1089d1470e
commit
ac4b9b2971
13 changed files with 42 additions and 159 deletions
|
@ -28,6 +28,7 @@
|
|||
#include "gui/feeds/FeedHolder.h"
|
||||
#include "gui/RetroShareLink.h"
|
||||
#include "gui/gxs/GxsIdDetails.h"
|
||||
#include "util/qtthreadsutils.h"
|
||||
#include "util/DateTime.h"
|
||||
#include "util/misc.h"
|
||||
#include "util/stringutil.h"
|
||||
|
@ -286,12 +287,15 @@ void BaseBoardsCommentsItem::readToggled(bool checked)
|
|||
return;
|
||||
}
|
||||
|
||||
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
||||
|
||||
uint32_t token;
|
||||
rsPosted->setMessageReadStatus(token, msgPair, !checked);
|
||||
|
||||
setReadStatus(false, checked);
|
||||
RsThread::async( [this,checked]() {
|
||||
RsGxsGrpMsgIdPair msgPair = std::make_pair(groupId(), messageId());
|
||||
|
||||
rsPosted->setCommentReadStatus(msgPair, !checked);
|
||||
|
||||
RsQThreadUtils::postToObject( [this,checked]() {
|
||||
setReadStatus(false, checked);
|
||||
} );
|
||||
});
|
||||
}
|
||||
|
||||
void BaseBoardsCommentsItem::readAndClearItem()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue