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:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user