diff --git a/src/neochatconnection.cpp b/src/neochatconnection.cpp index 462473e2e..f37342526 100644 --- a/src/neochatconnection.cpp +++ b/src/neochatconnection.cpp @@ -259,7 +259,7 @@ QCoro::Task NeoChatConnection::setupPushNotifications(QString endpoint) // We want to check if this UnifiedPush server has a Matrix gateway // This is because Matrix does not natively support UnifiedPush - const QJsonObject replyJson = QJsonDocument::fromJson(reply->readAll()).object(); + const auto &replyJson = QJsonDocument::fromJson(reply->readAll()).object(); if (replyJson["unifiedpush"_L1]["gateway"_L1].toString() == QStringLiteral("matrix")) { // FIXME: Currently hardcoded for ntfy URLs