mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Merge pull request #1067 from PhenomRetroShare/Fix_SecurityIpItemIsSame
Fix SecurityIpItem isSame
This commit is contained in:
commit
9cc09d6d2b
@ -1116,7 +1116,7 @@ static bool addFeedItemIfUniqueCallback(FeedItem *feedItem, void *data)
|
||||
|
||||
if (findData->mSecurityIpItem) {
|
||||
SecurityIpItem *securityIpItem = dynamic_cast<SecurityIpItem*>(feedItem);
|
||||
if (securityIpItem && securityIpItem->isSame(findData->mId1, findData->mId2, findData->mType)) {
|
||||
if (securityIpItem && securityIpItem->isSame(RsPeerId(findData->mId1), findData->mId2, findData->mId3, findData->mType)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -79,9 +79,9 @@ void SecurityIpItem::setup()
|
||||
updateItem();
|
||||
}
|
||||
|
||||
bool SecurityIpItem::isSame(const std::string& ipAddr, const std::string& ipAddrReported, uint32_t type)
|
||||
bool SecurityIpItem::isSame(const RsPeerId &sslId, const std::string& ipAddr, const std::string& ipAddrReported, uint32_t type)
|
||||
{
|
||||
if (mType == type && mIpAddr == ipAddr && mIpAddrReported == ipAddrReported) {
|
||||
if (mType == type && mSslId==sslId && mIpAddr == ipAddr && mIpAddrReported == ipAddrReported) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
|
||||
void updateItemStatic();
|
||||
|
||||
bool isSame(const std::string& ipAddr, const std::string& ipAddrReported, uint32_t type);
|
||||
bool isSame(const RsPeerId &sslId, const std::string& ipAddr, const std::string& ipAddrReported, uint32_t type);
|
||||
|
||||
protected:
|
||||
/* FeedItem */
|
||||
|
Loading…
Reference in New Issue
Block a user