mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix #513
This commit is contained in:
parent
39170de667
commit
1b430b33cc
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user