fixed a few typos

This commit is contained in:
csoler 2019-12-02 22:34:14 +01:00
parent 65fa54c206
commit 31968f82f2
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
6 changed files with 25 additions and 22 deletions

View file

@ -584,16 +584,18 @@ void MessageComposer::recommendFriend(const std::set <RsPeerId> &sslIds, const R
/* window will destroy itself! */
}
void MessageComposer::sendConnectAttemptMsg(const RsPgpId &gpgId, const RsPeerId &sslId, const QString &/*sslName*/)
void MessageComposer::addConnectAttemptMsg(const RsPgpId &gpgId, const RsPeerId &sslId, const QString &/*sslName*/)
{
if (gpgId.isNull()) {
if (gpgId.isNull())
return;
}
RetroShareLink link = RetroShareLink::createUnknwonSslCertificate(sslId, gpgId);
if (link.valid() == false) {
// PGPId+SslId are always here. But if the peer is not a friend the SSL id cannot be used.
// (todo) If the PGP id doesn't get us a PGP key from the keyring, we need to create a short invite
RetroShareLink link = RetroShareLink::createUnknownSslCertificate(sslId);
if (!link.valid())
return;
}
QString title = QString("%1 %2").arg(link.name(), tr("wants to be friends with you on RetroShare"));