mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Refactored group chat flagging (#9907)
This commit is contained in:
11
website/server/libs/chatReporting/chatReporterFactory.js
Normal file
11
website/server/libs/chatReporting/chatReporterFactory.js
Normal file
@@ -0,0 +1,11 @@
|
||||
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