Skip to content

Commit b98ea78

Browse files
bug(messaging): fix parsing remote message (#48)
1 parent d7b961e commit b98ea78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/firebase-messaging/index.ios.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,13 @@ function parseRemoteMessage(remoteMessage: NSDictionary<any, any>) {
419419
}
420420

421421
// message.sentTime
422-
if ([key === 'google.c.a.ts']) {
422+
if (key === 'google.c.a.ts') {
423423
message['sentTime'] = remoteMessage.objectForKey(key);
424424
continue;
425425
}
426426

427427
// message.to
428-
if ([key === 'to'] || [key === 'google.to']) {
428+
if (key === 'to' || key === 'google.to') {
429429
message['to'] = remoteMessage.objectForKey(key);
430430
continue;
431431
}

0 commit comments

Comments
 (0)