File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change 1
1
/* @flow strict-local */
2
- import PushNotificationIOS from '@react-native-community/push-notification-ios' ;
3
-
4
2
import type { Notification } from './types' ;
5
3
import { makeUserId } from '../api/idTypes' ;
6
4
import type { JSONableDict , JSONableInput , JSONableInputDict } from '../utils/jsonable' ;
@@ -170,20 +168,3 @@ export const fromAPNs = (data: ?JSONableDict): Notification | void => {
170
168
171
169
// Despite the name `fromAPNs`, there is no parallel Android-side `fromFCM`
172
170
// function here; the relevant task is performed in `FcmMessage.kt`.
173
-
174
- /**
175
- * Extract Zulip notification data from the blob our iOS libraries give us.
176
- *
177
- * On validation error (indicating a bug in either client or server),
178
- * logs a warning and returns void.
179
- *
180
- * On valid but unrecognized input (like a future, unknown type of
181
- * notification event), returns void.
182
- */
183
- export const fromPushNotificationIOS = ( notification : PushNotificationIOS ) : Notification | void => {
184
- // This is actually typed as ?Object (and so effectively `any`); but if
185
- // present, it must be a JSONable dictionary. It's giving us the
186
- // notification data, which was passed over APNs as JSON.
187
- const data : ?JSONableDict = notification . getData ( ) ;
188
- return fromAPNs ( data ) ;
189
- } ;
You can’t perform that action at this time.
0 commit comments