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)
|
if (!widget)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Check, that the user has a friend with the same ToxId
|
// Check, that the user has a friend with the same ToxPk
|
||||||
ToxId toxId(event->mimeData()->text());
|
const QByteArray data = QByteArray::fromHex(event->mimeData()->text().toLatin1());
|
||||||
Friend* f = FriendList::findFriend(toxId.getPublicKey());
|
const ToxPk toxPk{data};
|
||||||
|
Friend* f = FriendList::findFriend(toxPk);
|
||||||
if (!f)
|
if (!f)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user