2
0
mirror of synced 2025-01-11 14:44:12 +00:00

[fcm] Another little fix

This commit is contained in:
Chris Bianca 2018-02-09 10:23:35 +00:00
parent 1ddc76616d
commit fe095db90d

View File

@ -141,7 +141,7 @@ export default class Messaging extends ModuleBase {
getInitialMessage(): Promise<?Message> {
return getNativeModule(this)
.getInitialMessage()
.then(message => new Message(this, message));
.then(message => (message ? new Message(this, message) : null));
}
hasPermission(): Promise<boolean> {