Browse Source

fix(core): Correct getSelfDhtId's toxcore API

reviewable/pr6565/r1
Anthony Bilinski 4 years ago
parent
commit
faa72d567e
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 4
      src/core/core.cpp

4
src/core/core.cpp

@ -42,6 +42,8 @@ @@ -42,6 +42,8 @@
#include <QStringBuilder>
#include <QTimer>
#include <tox/tox.h>
#include <algorithm>
#include <cassert>
#include <chrono>
@ -1317,7 +1319,7 @@ QByteArray Core::getSelfDhtId() const @@ -1317,7 +1319,7 @@ QByteArray Core::getSelfDhtId() const
{
QMutexLocker ml{&coreLoopLock};
QByteArray dhtKey(TOX_PUBLIC_KEY_SIZE, 0x00);
tox_self_get_public_key(tox.get(), reinterpret_cast<uint8_t*>(dhtKey.data()));
tox_self_get_dht_id(tox.get(), reinterpret_cast<uint8_t*>(dhtKey.data()));
return dhtKey;
}

Loading…
Cancel
Save