restore auto-deny & suppress spam in NewsFeed

This commit is contained in:
jolavillette 2026-02-18 22:30:53 +01:00
parent c01c0a166f
commit 9488388dc9

View File

@ -23,6 +23,8 @@
#include "NewsFeed.h"
#include "ui_NewsFeed.h"
#include "pqi/authssl.h"
#include <retroshare/rsbanlist.h>
#include <retroshare/rsgxschannels.h>
#include <retroshare/rsgxsforums.h>
@ -478,6 +480,13 @@ void NewsFeed::handleSecurityEvent(std::shared_ptr<const RsEvent> event)
return;
auto& e(*pe);
// Check if denied by AuthSSL (backend)
if(AuthSSL::instance().isNotifyDenied(e.mPgpId))
{
return;
}
RsFeedTypeFlags flags = (RsFeedTypeFlags)Settings->getNewsFeedFlags();
// 1 - treat the case of unknown PeerID