feat(desktop): updateNotificationsToken with existing credentials on launch

This commit is contained in:
DIYgod 2025-05-22 11:04:29 +08:00
parent c48b94a525
commit 43692c67ee
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

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),