diff --git a/core/networkpackage.cpp b/core/networkpackage.cpp index 77b54e22b..dd5e12e57 100644 --- a/core/networkpackage.cpp +++ b/core/networkpackage.cpp @@ -58,12 +58,11 @@ NetworkPackage::NetworkPackage(const QString& type, const QVariantMap &body) void NetworkPackage::createIdentityPackage(NetworkPackage* np) { KdeConnectConfig* config = KdeConnectConfig::instance(); - const QString id = config->deviceId(); np->mId = QString::number(QDateTime::currentMSecsSinceEpoch()); np->mType = PACKAGE_TYPE_IDENTITY; np->mPayload = QSharedPointer(); np->mPayloadSize = 0; - np->set(QStringLiteral("deviceId"), id); + np->set(QStringLiteral("deviceId"), config->deviceId()); np->set(QStringLiteral("deviceName"), config->name()); np->set(QStringLiteral("deviceType"), config->deviceType()); np->set(QStringLiteral("protocolVersion"), NetworkPackage::ProtocolVersion);