mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Bugfix: show correct signed / unsigned state of forum messages
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2853 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c3d92dc472
commit
086c5f8e53
@ -207,6 +207,10 @@ bool p3Forums::getForumThreadMsgList(std::string fId, std::string pId, std::list
|
||||
tis.title = fmsg->title;
|
||||
tis.msg = fmsg->msg;
|
||||
|
||||
if (fmsg->personalSignature.keyId.empty() == false) {
|
||||
tis.msgflags |= RS_DISTRIB_AUTHEN_REQ;
|
||||
}
|
||||
|
||||
msgs.push_back(tis);
|
||||
}
|
||||
return true;
|
||||
@ -241,6 +245,10 @@ bool p3Forums::getForumMessage(std::string fId, std::string mId, ForumMsgInfo &i
|
||||
//info.srcId = fmsg->srcId;
|
||||
info.srcId = fmsg->personalSignature.keyId;
|
||||
|
||||
if (fmsg->personalSignature.keyId.empty() == false) {
|
||||
info.msgflags |= RS_DISTRIB_AUTHEN_REQ;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -149,9 +149,7 @@ void CreateForumMsg::newMsg()
|
||||
if (fi.forumFlags & RS_DISTRIB_AUTHEN_REQ)
|
||||
{
|
||||
ui.signBox->setChecked(true);
|
||||
//ui.signBox->setEnabled(false);
|
||||
// For Testing.
|
||||
ui.signBox->setEnabled(true);
|
||||
ui.signBox->setEnabled(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -199,7 +197,6 @@ void CreateForumMsg::createMsg()
|
||||
rsForums->ForumMessageSend(msgInfo);
|
||||
|
||||
close();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user