Regression: Fix setBadgeCount import (#4074)

This commit is contained in:
Gleidson Daniel Silva 2022-04-20 11:42:59 -03:00 committed by GitHub
parent 21c8de56ea
commit a4090782f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);