From 2ee6e1a52775c06eb287a49d2fa10ae0222a8d30 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Thu, 25 Jan 2024 13:59:44 -0300 Subject: [PATCH] Log if we received push event in old format --- src/libs/actions/User.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/actions/User.ts b/src/libs/actions/User.ts index df5709ac68e2..aaba02ecec1e 100644 --- a/src/libs/actions/User.ts +++ b/src/libs/actions/User.ts @@ -5,6 +5,7 @@ import type {OnyxEntry} from 'react-native-onyx/lib/types'; import type {ValueOf} from 'type-fest'; import * as API from '@libs/API'; import * as ErrorUtils from '@libs/ErrorUtils'; +import Log from '@libs/Log'; import Navigation from '@libs/Navigation/Navigation'; import * as SequentialQueue from '@libs/Network/SequentialQueue'; import * as Pusher from '@libs/Pusher/pusher'; @@ -490,6 +491,7 @@ function subscribeToUserEvents() { // - The data is an object, containing updateIDs from the server and an array of onyx updates (this array is the same format as the original format above) // Example: {lastUpdateID: 1, previousUpdateID: 0, updates: [{onyxMethod: 'whatever', key: 'foo', value: 'bar'}]} if (Array.isArray(pushJSON)) { + Log.warn('Received pusher event with array format'); pushJSON.forEach((multipleEvent) => { PusherUtils.triggerMultiEventHandler(multipleEvent.eventType, multipleEvent.data); });