diff --git a/src/controller.cpp b/src/controller.cpp index 59247d94b..837c53e58 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -102,7 +102,9 @@ Controller::Controller(QObject *parent) NotificationsManager::instance().handleNotifications(connection); }); connectSingleShot(connection, &NeoChatConnection::syncDone, this, [this, connection] { - connection->setupPushNotifications(m_endpoint); + if (!m_endpoint.isEmpty()) { + connection->setupPushNotifications(m_endpoint); + } }); } oldAccountCount = m_accountRegistry.size();