mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
select GxsIds as default list to chose msg destination from
This commit is contained in:
parent
83a987936d
commit
81fc3b7921
4 changed files with 13 additions and 2 deletions
|
@ -377,6 +377,7 @@ struct RsIdentity : RsGxsIfaceHelper
|
|||
|
||||
virtual bool setAsRegularContact(const RsGxsId& id,bool is_a_contact) = 0 ;
|
||||
virtual bool isARegularContact(const RsGxsId& id) = 0 ;
|
||||
virtual uint32_t nbRegularContacts() =0;
|
||||
|
||||
virtual bool serialiseIdentityToMemory( const RsGxsId& id,
|
||||
std::string& radix_string ) = 0;
|
||||
|
|
|
@ -224,7 +224,13 @@ uint32_t p3IdService::idAuthenPolicy()
|
|||
return policy;
|
||||
}
|
||||
|
||||
bool p3IdService::isARegularContact(const RsGxsId& id)
|
||||
uint32_t p3IdService::nbRegularContacts()
|
||||
{
|
||||
RsStackMutex stack(mIdMtx);
|
||||
return mContacts.size();
|
||||
}
|
||||
|
||||
bool p3IdService::isARegularContact(const RsGxsId& id)
|
||||
{
|
||||
RsStackMutex stack(mIdMtx);
|
||||
return mContacts.find(id) != mContacts.end() ;
|
||||
|
|
|
@ -281,6 +281,7 @@ public:
|
|||
|
||||
virtual bool setAsRegularContact(const RsGxsId& id,bool is_a_contact) ;
|
||||
virtual bool isARegularContact(const RsGxsId& id) ;
|
||||
virtual uint32_t nbRegularContacts() ;
|
||||
virtual time_t getLastUsageTS(const RsGxsId &id) ;
|
||||
|
||||
/**************** RsGixs Implementation ***************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue