Only run setupPushNotification once for new accounts

This commit is contained in:
Joshua Goins
2023-11-10 11:36:34 -05:00
parent 600dbd0603
commit d90298392d

View File

@@ -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);
});
}