diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js index e2780dd3e..05eded590 100644 --- a/src/services/notifications_fetcher/notifications_fetcher.service.js +++ b/src/services/notifications_fetcher/notifications_fetcher.service.js @@ -113,7 +113,10 @@ const startFetching = ({ credentials, store }) => { // Initially there's set flag to silence all desktop notifications so // that there won't spam of them when user just opened up the FE we // reset that flag after a while to show new notifications once again. - setTimeout(() => useNotificationsStore().setNotificationsSilence(false), 10000) + setTimeout( + () => useNotificationsStore().setNotificationsSilence(false), + 10000, + ) const boundFetchAndUpdate = () => fetchAndUpdate({ credentials, store }) boundFetchAndUpdate() return promiseInterval(boundFetchAndUpdate, 10000) diff --git a/src/stores/users.js b/src/stores/users.js index 558f8ed71..7554d937e 100644 --- a/src/stores/users.js +++ b/src/stores/users.js @@ -151,8 +151,8 @@ export const useUsersStore = defineStore('users', { // implicit: if oldTimestamp is undefined this will still be false if (oldTimestamp > timestamp) return // not overwriting old data with new - const { relationship, ...old } = existing - const { relationshop, ...neu } = user + const { relationship: unused0, ...old } = existing + const { relationship: unused1, ...neu } = user const newUser = { ...old, ...neu } this.users.set(user.id, newUser) @@ -697,7 +697,8 @@ export const useUsersStore = defineStore('users', { .then(() => { dispatch('fetchChats', { latest: true }) setTimeout( - () => useNotificationsStore().setNotificationsSilence(false), + () => + useNotificationsStore().setNotificationsSilence(false), 10000, ) })