feat(desktop): updateNotificationsToken with existing credentials on launch
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user