Skip to content

Commit 37d1768

Browse files
roryabrahamOSBotify
authored andcommitted
Merge pull request #9381 from Expensify/beaman-removeIsChunkedFromPusherSubscribe
(cherry picked from commit 9d4633a)
1 parent 124109d commit 37d1768

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/libs/PusherUtils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import CONST from '../CONST';
1010
* @param {String} eventName
1111
* @param {String} accountID
1212
* @param {Function} onEvent
13-
* @param {Boolean} isChunked
1413
*/
15-
function subscribeToPrivateUserChannelEvent(eventName, accountID, onEvent, isChunked = false) {
14+
function subscribeToPrivateUserChannelEvent(eventName, accountID, onEvent) {
1615
const pusherChannelName = `${CONST.PUSHER.PRIVATE_USER_CHANNEL_PREFIX}${accountID}${CONFIG.PUSHER.SUFFIX}`;
1716

1817
/**
@@ -40,7 +39,7 @@ function subscribeToPrivateUserChannelEvent(eventName, accountID, onEvent, isChu
4039
function onSubscriptionFailed(error) {
4140
Log.hmmm('Failed to subscribe to Pusher channel', false, {error, pusherChannelName, eventName});
4241
}
43-
Pusher.subscribe(pusherChannelName, eventName, onEventPush, isChunked, onPusherResubscribeToPrivateUserChannel)
42+
Pusher.subscribe(pusherChannelName, eventName, onEventPush, onPusherResubscribeToPrivateUserChannel)
4443
.catch(onSubscriptionFailed);
4544
}
4645

src/libs/actions/Report.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ function subscribeToUserEvents() {
618618
Pusher.TYPE.REPORT_COMMENT_CHUNK,
619619
currentUserAccountID,
620620
pushJSON => updateReportWithNewAction(pushJSON.reportID, pushJSON.reportAction, pushJSON.notificationPreference),
621-
true,
622621
);
623622

624623
// Live-update a report's actions when an 'edit comment' event is received.
@@ -631,7 +630,6 @@ function subscribeToUserEvents() {
631630
Pusher.TYPE.REPORT_COMMENT_EDIT_CHUNK,
632631
currentUserAccountID,
633632
pushJSON => updateReportActionMessage(pushJSON.reportID, pushJSON.sequenceNumber, pushJSON.message),
634-
true,
635633
);
636634
}
637635

src/libs/actions/User.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function subscribeToUserEvents() {
314314
SequentialQueue.getCurrentRequest().then(() => {
315315
Onyx.update(pushJSON.onyxData);
316316
});
317-
}, true);
317+
});
318318

319319
// Live-update an user's preferred locale
320320
Pusher.subscribe(pusherChannelName, Pusher.TYPE.PREFERRED_LOCALE, (pushJSON) => {

0 commit comments

Comments
 (0)