diff --git a/api/server/methods.ts b/api/server/methods.ts index bc5dc3820..ec7c482b3 100644 --- a/api/server/methods.ts +++ b/api/server/methods.ts @@ -70,7 +70,7 @@ Meteor.methods({ if (!this.userId) throw new Meteor.Error('unauthorized', 'User must be logged-in to create a new chat'); - check(type, Match.OneOf(String, [ MessageType.TEXT ])); + check(type, Match.OneOf(String, [ MessageType.TEXT, MessageType.LOCATION ])); check(chatId, nonEmptyString); check(content, nonEmptyString);