[invites] Initial JS and Android invites functionality

This commit is contained in:
Chris Bianca
2018-03-22 12:46:37 +00:00
parent 26c3ed9a60
commit 53babb4cd9
16 changed files with 747 additions and 135 deletions

View File

@@ -133,13 +133,13 @@ export default class RemoteMessage {
}
build(): NativeOutboundRemoteMessage {
if (!this.data) {
if (!this._data) {
throw new Error('RemoteMessage: Missing required `data` property');
} else if (!this.messageId) {
} else if (!this._messageId) {
throw new Error('RemoteMessage: Missing required `messageId` property');
} else if (!this.to) {
} else if (!this._to) {
throw new Error('RemoteMessage: Missing required `to` property');
} else if (!this.ttl) {
} else if (!this._ttl) {
throw new Error('RemoteMessage: Missing required `ttl` property');
}