Remove unnecessary activeConnection() call in setupPushNotifications

This commit is contained in:
Joshua Goins
2023-11-10 11:36:21 -05:00
parent 2179e2cc35
commit 600dbd0603

View File

@@ -269,12 +269,11 @@ QCoro::Task<void> NeoChatConnection::setupPushNotifications(QString endpoint)
// Pop the slash off of the path // Pop the slash off of the path
const QString pushkey = endpointUrl.path().removeFirst(); const QString pushkey = endpointUrl.path().removeFirst();
Controller::instance().activeConnection()->callApi<PostPusherJob>( callApi<PostPusherJob>(pushkey,
pushkey,
QStringLiteral("http"), QStringLiteral("http"),
QStringLiteral("org.kde.neochat"), QStringLiteral("org.kde.neochat"),
QStringLiteral("NeoChat"), QStringLiteral("NeoChat"),
Controller::instance().activeConnection()->deviceId(), deviceId(),
QString(), // FIXME: what is profileTag? QString(), // FIXME: what is profileTag?
QStringLiteral("en"), QStringLiteral("en"),
PostPusherJob::PusherData{QUrl::fromUserInput(gatewayEndpoint.toString()), QStringLiteral(" ")}); PostPusherJob::PusherData{QUrl::fromUserInput(gatewayEndpoint.toString()), QStringLiteral(" ")});