Remove unnecessary activeConnection() call in setupPushNotifications
This commit is contained in:
@@ -269,15 +269,14 @@ 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"),
|
deviceId(),
|
||||||
Controller::instance().activeConnection()->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(" ")});
|
|
||||||
|
|
||||||
qInfo() << "Registered for push notifications";
|
qInfo() << "Registered for push notifications";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user