fixed bug causing lack of passwd request on group edit

This commit is contained in:
csoler 2021-02-10 21:47:06 +01:00
parent 499753f873
commit 43fbd6f76a
3 changed files with 3 additions and 1 deletions

View File

@ -143,6 +143,7 @@ struct RsGxsIdGroup : RsSerializable
rstime_t mLastUsageTS ;
// Not Serialised - for GUI's benefit.
bool mPgpLinked;
bool mPgpKnown;
bool mIsAContact; // change that into flags one day
RsPgpId mPgpId;

View File

@ -2017,6 +2017,7 @@ bool p3IdService::getGroupData(const uint32_t &token, std::vector<RsGxsIdGroup>
}
group.mIsAContact = (mContacts.find(RsGxsId(group.mMeta.mGroupId)) != mContacts.end());
group.mPgpLinked = (!!(group.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID_kept_for_compatibility)) || !!(group.mMeta.mGroupFlags & RSGXSID_GROUPFLAG_REALID);
groups.push_back(group);
delete(item);

View File

@ -637,7 +637,7 @@ void IdEditDialog::updateId()
RsGxsId keyId;
std::string gpg_password;
if(!mEditGroup.mPgpId.isNull())
if(mEditGroup.mPgpLinked)
{
std::string gpg_name = rsPeers->getGPGName(rsPeers->getGPGOwnId());
bool cancelled;