[fcm] Another little fix
This commit is contained in:
parent
1ddc76616d
commit
fe095db90d
@ -141,7 +141,7 @@ export default class Messaging extends ModuleBase {
|
|||||||
getInitialMessage(): Promise<?Message> {
|
getInitialMessage(): Promise<?Message> {
|
||||||
return getNativeModule(this)
|
return getNativeModule(this)
|
||||||
.getInitialMessage()
|
.getInitialMessage()
|
||||||
.then(message => new Message(this, message));
|
.then(message => (message ? new Message(this, message) : null));
|
||||||
}
|
}
|
||||||
|
|
||||||
hasPermission(): Promise<boolean> {
|
hasPermission(): Promise<boolean> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user