1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
apprb 2015-02-08 20:15:11 +09:00
parent 39170de667
commit 1b430b33cc
No known key found for this signature in database
GPG Key ID: B001911B5B22FB9B

View File

@ -776,6 +776,10 @@ void Core::requestFriendship(const QString& friendAddress, const QString& messag
{ {
// Update our friendAddresses // Update our friendAddresses
Settings::getInstance().updateFriendAdress(friendAddress); Settings::getInstance().updateFriendAdress(friendAddress);
QString inviteStr = tr("/me offers friendship.");
if (message.length())
inviteStr = tr("/me offers friendship, \"%1\"").arg(message);
HistoryKeeper::getInstance()->addChatEntry(userId, inviteStr, getSelfId().publicKey, QDateTime::currentDateTime(), true);
emit friendAdded(friendId, userId); emit friendAdded(friendId, userId);
} }
} }