mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
* Refactored chat reporting * Added inbox flag chat * Added flag chat to inbox * Added you have flagged message
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
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);
|
|
}
|
|
}
|