diff --git a/src/libs/PusherUtils.js b/src/libs/PusherUtils.js index 60218697ae26..2cd614c604e5 100644 --- a/src/libs/PusherUtils.js +++ b/src/libs/PusherUtils.js @@ -10,9 +10,8 @@ import CONST from '../CONST'; * @param {String} eventName * @param {String} accountID * @param {Function} onEvent - * @param {Boolean} isChunked */ -function subscribeToPrivateUserChannelEvent(eventName, accountID, onEvent, isChunked = false) { +function subscribeToPrivateUserChannelEvent(eventName, accountID, onEvent) { const pusherChannelName = `${CONST.PUSHER.PRIVATE_USER_CHANNEL_PREFIX}${accountID}${CONFIG.PUSHER.SUFFIX}`; /** @@ -40,7 +39,7 @@ function subscribeToPrivateUserChannelEvent(eventName, accountID, onEvent, isChu function onSubscriptionFailed(error) { Log.hmmm('Failed to subscribe to Pusher channel', false, {error, pusherChannelName, eventName}); } - Pusher.subscribe(pusherChannelName, eventName, onEventPush, isChunked, onPusherResubscribeToPrivateUserChannel) + Pusher.subscribe(pusherChannelName, eventName, onEventPush, onPusherResubscribeToPrivateUserChannel) .catch(onSubscriptionFailed); } diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 8b513597817a..3abd3ba12356 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -618,7 +618,6 @@ function subscribeToUserEvents() { Pusher.TYPE.REPORT_COMMENT_CHUNK, currentUserAccountID, pushJSON => updateReportWithNewAction(pushJSON.reportID, pushJSON.reportAction, pushJSON.notificationPreference), - true, ); // Live-update a report's actions when an 'edit comment' event is received. @@ -631,7 +630,6 @@ function subscribeToUserEvents() { Pusher.TYPE.REPORT_COMMENT_EDIT_CHUNK, currentUserAccountID, pushJSON => updateReportActionMessage(pushJSON.reportID, pushJSON.sequenceNumber, pushJSON.message), - true, ); } diff --git a/src/libs/actions/User.js b/src/libs/actions/User.js index cc7b282f3029..777bd268b9f3 100644 --- a/src/libs/actions/User.js +++ b/src/libs/actions/User.js @@ -314,7 +314,7 @@ function subscribeToUserEvents() { SequentialQueue.getCurrentRequest().then(() => { Onyx.update(pushJSON.onyxData); }); - }, true); + }); // Live-update an user's preferred locale Pusher.subscribe(pusherChannelName, Pusher.TYPE.PREFERRED_LOCALE, (pushJSON) => {