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

@@ -1,11 +1,10 @@
import GroupChatReporter from './groupChatReporter';
// import InboxChatReporter from './inboxChatReporter';
import InboxChatReporter from './inboxChatReporter';
export function chatReporterFactory (type, req, res) {
if (type === 'Group') {
return new GroupChatReporter(req, res);
} else if (type === 'Inbox') {
return new InboxChatReporter(req, res);
}
// else if (type === 'Inbox') {
// return new InboxChatReporter(req, res);
// }
}