Chat flag inbox (#9761)

* Refactored chat reporting

* Added inbox flag chat

* Added flag chat to inbox

* Added you have flagged message
This commit is contained in:
Keith Holliday
2018-01-08 13:13:25 -06:00
committed by GitHub
parent 7eac5cebf5
commit 98d4fb0f34
15 changed files with 494 additions and 218 deletions

View File

@@ -0,0 +1,10 @@
import GroupChatReporter from './groupChatReporter';
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);
}
}