mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 16:39:29 -05:00
Merge pull request #2247 from defnax/feeds-ui-fixes
Fixed to not popup the "Refused Connection" by default
This commit is contained in:
commit
93ba1c76e9
@ -463,7 +463,7 @@ void NewsFeed::handleSecurityEvent(std::shared_ptr<const RsEvent> event)
|
||||
#endif
|
||||
uint flags = Settings->getNewsFeedFlags();
|
||||
|
||||
if(e.mErrorCode == RsAuthSslError::PEER_REFUSED_CONNECTION)
|
||||
if(e.mErrorCode == RsAuthSslError::PEER_REFUSED_CONNECTION && (flags & RS_FEED_TYPE_SECURITY_IP))
|
||||
{
|
||||
addFeedItemIfUnique(new PeerItem(this, NEWSFEED_PEERLIST, e.mSslId, PEER_TYPE_HELLO, false), true );
|
||||
return;
|
||||
|
@ -137,7 +137,7 @@ void RshareSettings::initSettings()
|
||||
// This is not default... RS_CHAT_FOCUS.
|
||||
|
||||
uint defNotify = (RS_POPUP_CONNECT | RS_POPUP_MSG);
|
||||
uint defNewsFeed = (RS_FEED_TYPE_MSG | RS_FEED_TYPE_FILES | RS_FEED_TYPE_SECURITY | RS_FEED_TYPE_SECURITY_IP);
|
||||
uint defNewsFeed = (RS_FEED_TYPE_MSG | RS_FEED_TYPE_FILES | RS_FEED_TYPE_SECURITY | RS_FEED_TYPE_SECURITY_IP | RS_FEED_TYPE_CIRCLE | RS_FEED_TYPE_CHANNEL |RS_FEED_TYPE_FORUM | RS_FEED_TYPE_POSTED);
|
||||
|
||||
setDefault(SETTING_NEWSFEED_FLAGS, defNewsFeed);
|
||||
setDefault(SETTING_CHAT_FLAGS, defChat);
|
||||
|
Loading…
Reference in New Issue
Block a user