From d90298392d643e4229694393f9f5ee0476bdc86d Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 10 Nov 2023 11:36:34 -0500 Subject: [PATCH] Only run setupPushNotification once for new accounts --- src/controller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.cpp b/src/controller.cpp index 4e53448b5..54f98c20c 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -100,7 +100,7 @@ Controller::Controller(QObject *parent) connect(connection, &NeoChatConnection::syncDone, this, [connection]() { NotificationsManager::instance().handleNotifications(connection); }); - connect(connection, &NeoChatConnection::connected, this, [this, connection]() { + connectSingleShot(connection, &NeoChatConnection::connected, this, [this, connection]() { connection->setupPushNotifications(m_endpoint); }); }