fix indentation

This commit is contained in:
David Bears 2025-05-29 14:43:22 -04:00
parent 41b3ec4de5
commit 59db1e21a5
No known key found for this signature in database
GPG key ID: FB975E12C69F7177
2 changed files with 18 additions and 18 deletions

View file

@ -169,23 +169,23 @@ void CreateGxsForumMsg::newMsg()
/* fill in the available OwnIds for signing */
//std::cerr << "Initing ID chooser. Sign flags = " << std::hex << mForumMeta.mSignFlags << std::dec << std::endl;
uint32_t idChooserFlags = IDCHOOSER_ID_REQUIRED;
if(!mOrigMsgId.isNull()) {
// we are editing an existing message
std::set<RsGxsId> id_set = mModeratorSet;
if(!mPosterId.isNull())
id_set.insert(mPosterId);
//std::cerr << "Initing ID chooser. Sign flags = " << std::hex << mForumMeta.mSignFlags << std::dec << std::endl;
uint32_t idChooserFlags = IDCHOOSER_ID_REQUIRED;
if(!mOrigMsgId.isNull()) {
// we are editing an existing message
std::set<RsGxsId> id_set = mModeratorSet;
if(!mPosterId.isNull())
id_set.insert(mPosterId);
// TODO: Report error if idChooser has no IDs to choose from.
// NOTE: mPosterId may not be our own; then GxsIdChooser will not include it.
// TODO: Report error if idChooser has no IDs to choose from.
// NOTE: mPosterId may not be our own; then GxsIdChooser will not include it.
idChooserFlags |= IDCHOOSER_NO_CREATE;
ui->idChooser->setIdConstraintSet(id_set);
}
ui->idChooser->loadIds(idChooserFlags, mPosterId);
idChooserFlags |= IDCHOOSER_NO_CREATE;
ui->idChooser->setIdConstraintSet(id_set);
}
ui->idChooser->loadIds(idChooserFlags, mPosterId);
if (mForumId.isNull()) {
if (mForumId.isNull()) {
mStateHelper->setActive(CREATEGXSFORUMMSG_FORUMINFO, false);
mStateHelper->setActive(CREATEGXSFORUMMSG_PARENTMSG, false);
mStateHelper->setActive(CREATEGXSFORUMMSG_ORIGMSG, false);
@ -407,7 +407,7 @@ void CreateGxsForumMsg::createMsg()
msg.mMeta.mGroupId = mForumId;
msg.mMeta.mParentId = mParentId;
msg.mMeta.mOrigMsgId = mOrigMsgId;
msg.mMeta.mMsgFlags = 0;
msg.mMeta.mMsgFlags = 0;
msg.mMeta.mMsgId.clear() ;
if (mParentMsgLoaded) {
@ -429,8 +429,8 @@ void CreateGxsForumMsg::createMsg()
case GxsIdChooser::KnowId:
case GxsIdChooser::UnKnowId:
msg.mMeta.mAuthorId = authorId;
if(!mOrigMsgId.isNull() && authorId != mPosterId)
msg.mMeta.mMsgFlags |= RS_GXS_FORUM_MSG_FLAGS_MODERATED;
if(!mOrigMsgId.isNull() && authorId != mPosterId)
msg.mMeta.mMsgFlags |= RS_GXS_FORUM_MSG_FLAGS_MODERATED;
//std::cerr << "CreateGxsForumMsg::createMsg() AuthorId: " << authorId;
//std::cerr << std::endl;

View file

@ -75,7 +75,7 @@ private:
bool mOrigMsgLoaded;
bool mForumMetaLoaded;
bool mForumCircleLoaded ;
std::set<RsGxsId> mModeratorSet; // these IDs are allowed to edit the post in addition to mPosterId
std::set<RsGxsId> mModeratorSet; // these IDs are allowed to edit the post in addition to mPosterId
RsGxsForumMsg mParentMsg;
RsGxsForumMsg mOrigMsg;