feat(desktop): updateNotificationsToken with existing credentials on launch

This commit is contained in:
DIYgod
2025-05-22 11:04:50 +08:00
parent c48b94a525
commit 43692c67ee
+4
View File
@@ -155,6 +155,10 @@ const registerPushNotifications = async () => {
const credentials = store.get(credentialsKey)
const persistentIds = store.get(persistentIdsKey)
if (credentials) {
updateNotificationsToken(credentials)
}
const instance = new PushReceiver({
debug: true,
firebase: JSON.parse(env.VITE_FIREBASE_CONFIG),