feat(desktop): updateNotificationsToken with existing credentials on launch
This commit is contained in:
parent
c48b94a525
commit
43692c67ee
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in New Issue