mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-24 15:05:35 -04:00
cleanup up the code in FriendList, and fixed bug causing own locations not to show
This commit is contained in:
parent
b26be4db08
commit
6a62227dba
4 changed files with 10 additions and 24 deletions
|
@ -993,7 +993,9 @@ void RsFriendListModel::updateInternalData()
|
|||
HierarchicalNodeInformation hnode ;
|
||||
rsPeers->getPeerDetails(*it,hnode.node_info);
|
||||
|
||||
auto it2 = checkProfileIndex(hnode.node_info.gpg_id,pgp_indices,mProfiles,false);
|
||||
// If the Peer ID belong to our own profile, we add our own profile to the list. Otherwise we do not display it in the friend list.
|
||||
|
||||
auto it2 = checkProfileIndex(hnode.node_info.gpg_id,pgp_indices,mProfiles,hnode.node_info.gpg_id == rsPeers->getGPGOwnId());
|
||||
|
||||
if(it2 == pgp_indices.end())
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue