mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: Use ToxPk instead of ToxId
This commit is contained in:
parent
6b93a41a40
commit
c6d76da0dd
|
@ -552,9 +552,10 @@ void FriendListWidget::dropEvent(QDropEvent* event)
|
|||
if (!widget)
|
||||
return;
|
||||
|
||||
// Check, that the user has a friend with the same ToxId
|
||||
ToxId toxId(event->mimeData()->text());
|
||||
Friend* f = FriendList::findFriend(toxId.getPublicKey());
|
||||
// Check, that the user has a friend with the same ToxPk
|
||||
const QByteArray data = QByteArray::fromHex(event->mimeData()->text().toLatin1());
|
||||
const ToxPk toxPk{data};
|
||||
Friend* f = FriendList::findFriend(toxPk);
|
||||
if (!f)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user