void Settings::setAutoAcceptDir(const ToxID &id, const QString& dir) { QString key = id.publicKey; auto it = friendLst.find(key); if (it != friendLst.end()) { it->autoAcceptDir = dir; } else { updateFriendAdress(id.toString()); setAutoAcceptDir(id, dir); } }
void Settings::setContactNote(const ToxId &id, const QString& note) { QMutexLocker locker{&bigLock}; auto it = friendLst.find(id.publicKey); if (it != friendLst.end()) { qDebug() << note; it->note = note; } else { updateFriendAdress(id.toString()); setContactNote(id, note); } }