copy chatReporter - fix unknown apiMessages - add api for flagging pm

This commit is contained in:
negue
2018-06-02 18:18:00 +02:00
parent 532881e679
commit 5a0eed7eae
6 changed files with 140 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ export default class GroupChatReporter extends ChatReporter {
async validate () {
this.req.checkParams('groupId', apiError('groupIdRequired')).notEmpty();
this.req.checkParams('chatId', this.res.t('chatIdRequired')).notEmpty();
this.req.checkParams('chatId', apiError('chatIdRequired')).notEmpty();
let validationErrors = this.req.validationErrors();
if (validationErrors) throw validationErrors;