From a4090782f56116e502f4058ab542049a698745dc Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Wed, 20 Apr 2022 11:42:59 -0300 Subject: [PATCH] Regression: Fix setBadgeCount import (#4074) --- app/sagas/state.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/sagas/state.js b/app/sagas/state.js index ce85495ea..0e00e9bb7 100644 --- a/app/sagas/state.js +++ b/app/sagas/state.js @@ -1,7 +1,7 @@ import { select, takeLatest } from 'redux-saga/effects'; import RocketChat from '../lib/rocketchat'; -import { setBadgeCount } from '../lib/notifications/push'; +import Push from '../lib/notifications/push'; import log from '../utils/log'; import { localAuthenticate, saveLastLocalAuthenticationSession } from '../utils/localAuthentication'; import { APP_STATE } from '../actions/actionsTypes'; @@ -20,7 +20,7 @@ const appHasComeBackToForeground = function* appHasComeBackToForeground() { try { yield localAuthenticate(server.server); RocketChat.checkAndReopen(); - setBadgeCount(); + Push.setBadgeCount(); return yield RocketChat.setUserPresenceOnline(); } catch (e) { log(e);