mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-19 13:36:03 -04:00
webui: fixed bug with peers without locations
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8168 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f926be29c7
commit
3d3ffea102
@ -156,6 +156,8 @@ void PeersHandler::handleWildcard(Request &req, Response &resp)
|
||||
itemStream << makeKeyValueReference("pgp_id", *lit);
|
||||
itemStream << makeKeyValue("name", mRsPeers->getGPGName(*lit));
|
||||
StreamBase& locationStream = itemStream.getStreamToMember("locations");
|
||||
// mark as list (in case list is empty)
|
||||
locationStream.getStreamToMember();
|
||||
for(std::vector<RsPeerDetails>::iterator vit = detailsVec.begin(); vit != detailsVec.end(); ++vit)
|
||||
{
|
||||
if(vit->gpg_id == *lit)
|
||||
|
Loading…
x
Reference in New Issue
Block a user