diff --git a/lib/modules/messaging/index.js b/lib/modules/messaging/index.js index c2e1718f..7b27249d 100644 --- a/lib/modules/messaging/index.js +++ b/lib/modules/messaging/index.js @@ -141,7 +141,7 @@ export default class Messaging extends ModuleBase { getInitialMessage(): Promise { return getNativeModule(this) .getInitialMessage() - .then(message => new Message(this, message)); + .then(message => (message ? new Message(this, message) : null)); } hasPermission(): Promise {