exclude own friends from key removal pre-selection

This commit is contained in:
csoler 2017-07-27 20:43:08 +02:00
parent e861f87364
commit c6b6835461

View File

@ -227,7 +227,7 @@ void NetworkDialog::removeUnusedKeys()
std::cerr << "Skipping public/secret key pair " << *it << std::endl;
continue ;
}
if(now > (time_t) (THREE_MONTHS + details.lastUsed))
if(now > (time_t) (THREE_MONTHS + details.lastUsed) && !details.accept_connection)
{
std::cerr << "Adding " << *it << " to pre-selection." << std::endl;
pre_selected.insert(*it) ;