mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
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:
10
website/server/libs/chatReporting/chatReporterFactory.js
Normal file
10
website/server/libs/chatReporting/chatReporterFactory.js
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user