mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-10-14 14:31:06 -04:00
fix indentation
This commit is contained in:
parent
677b40ddbf
commit
dae321ef8e
2 changed files with 18 additions and 18 deletions
|
@ -168,23 +168,23 @@ void CreateGxsForumMsg::newMsg()
|
||||||
|
|
||||||
/* fill in the available OwnIds for signing */
|
/* fill in the available OwnIds for signing */
|
||||||
|
|
||||||
//std::cerr << "Initing ID chooser. Sign flags = " << std::hex << mForumMeta.mSignFlags << std::dec << std::endl;
|
//std::cerr << "Initing ID chooser. Sign flags = " << std::hex << mForumMeta.mSignFlags << std::dec << std::endl;
|
||||||
uint32_t idChooserFlags = IDCHOOSER_ID_REQUIRED;
|
uint32_t idChooserFlags = IDCHOOSER_ID_REQUIRED;
|
||||||
if(!mOrigMsgId.isNull()) {
|
if(!mOrigMsgId.isNull()) {
|
||||||
// we are editing an existing message
|
// we are editing an existing message
|
||||||
std::set<RsGxsId> id_set = mModeratorSet;
|
std::set<RsGxsId> id_set = mModeratorSet;
|
||||||
if(!mPosterId.isNull())
|
if(!mPosterId.isNull())
|
||||||
id_set.insert(mPosterId);
|
id_set.insert(mPosterId);
|
||||||
|
|
||||||
// TODO: Report error if idChooser has no IDs to choose from.
|
// TODO: Report error if idChooser has no IDs to choose from.
|
||||||
// NOTE: mPosterId may not be our own; then GxsIdChooser will not include it.
|
// NOTE: mPosterId may not be our own; then GxsIdChooser will not include it.
|
||||||
|
|
||||||
idChooserFlags |= IDCHOOSER_NO_CREATE;
|
idChooserFlags |= IDCHOOSER_NO_CREATE;
|
||||||
ui->idChooser->setIdConstraintSet(id_set);
|
ui->idChooser->setIdConstraintSet(id_set);
|
||||||
}
|
}
|
||||||
ui->idChooser->loadIds(idChooserFlags, mPosterId);
|
ui->idChooser->loadIds(idChooserFlags, mPosterId);
|
||||||
|
|
||||||
if (mForumId.isNull()) {
|
if (mForumId.isNull()) {
|
||||||
mStateHelper->setActive(CREATEGXSFORUMMSG_FORUMINFO, false);
|
mStateHelper->setActive(CREATEGXSFORUMMSG_FORUMINFO, false);
|
||||||
mStateHelper->setActive(CREATEGXSFORUMMSG_PARENTMSG, false);
|
mStateHelper->setActive(CREATEGXSFORUMMSG_PARENTMSG, false);
|
||||||
mStateHelper->setActive(CREATEGXSFORUMMSG_ORIGMSG, false);
|
mStateHelper->setActive(CREATEGXSFORUMMSG_ORIGMSG, false);
|
||||||
|
@ -406,7 +406,7 @@ void CreateGxsForumMsg::createMsg()
|
||||||
msg.mMeta.mGroupId = mForumId;
|
msg.mMeta.mGroupId = mForumId;
|
||||||
msg.mMeta.mParentId = mParentId;
|
msg.mMeta.mParentId = mParentId;
|
||||||
msg.mMeta.mOrigMsgId = mOrigMsgId;
|
msg.mMeta.mOrigMsgId = mOrigMsgId;
|
||||||
msg.mMeta.mMsgFlags = 0;
|
msg.mMeta.mMsgFlags = 0;
|
||||||
msg.mMeta.mMsgId.clear() ;
|
msg.mMeta.mMsgId.clear() ;
|
||||||
|
|
||||||
if (mParentMsgLoaded) {
|
if (mParentMsgLoaded) {
|
||||||
|
@ -428,8 +428,8 @@ void CreateGxsForumMsg::createMsg()
|
||||||
case GxsIdChooser::KnowId:
|
case GxsIdChooser::KnowId:
|
||||||
case GxsIdChooser::UnKnowId:
|
case GxsIdChooser::UnKnowId:
|
||||||
msg.mMeta.mAuthorId = authorId;
|
msg.mMeta.mAuthorId = authorId;
|
||||||
if(!mOrigMsgId.isNull() && authorId != mPosterId)
|
if(!mOrigMsgId.isNull() && authorId != mPosterId)
|
||||||
msg.mMeta.mMsgFlags |= RS_GXS_FORUM_MSG_FLAGS_MODERATED;
|
msg.mMeta.mMsgFlags |= RS_GXS_FORUM_MSG_FLAGS_MODERATED;
|
||||||
//std::cerr << "CreateGxsForumMsg::createMsg() AuthorId: " << authorId;
|
//std::cerr << "CreateGxsForumMsg::createMsg() AuthorId: " << authorId;
|
||||||
//std::cerr << std::endl;
|
//std::cerr << std::endl;
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ private:
|
||||||
bool mOrigMsgLoaded;
|
bool mOrigMsgLoaded;
|
||||||
bool mForumMetaLoaded;
|
bool mForumMetaLoaded;
|
||||||
bool mForumCircleLoaded ;
|
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 mParentMsg;
|
||||||
RsGxsForumMsg mOrigMsg;
|
RsGxsForumMsg mOrigMsg;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue