mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
copy chatReporter - fix unknown apiMessages - add api for flagging pm
This commit is contained in:
@@ -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);
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user