-
Notifications
You must be signed in to change notification settings - Fork 52
Fix issue #11 - Report user guide #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
s074
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is almost good to go, only suggested one change this time around, good job 👍
s074
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I requested some cleanup changes since the GUIDE report doesn't need any chatlogs
| { | ||
| const parser = event.getParser(); | ||
|
|
||
| addMessengerEntry({ id: -1, webId: parser.senderId, entityId: -1, name: userName, timestamp: ChatHistoryCurrentDate(), type: ChatEntryType.TYPE_IM, roomId: !roomSession ? 0 : roomSession.roomId, message: parser.chatMessage }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we aren't sending any chatlogs we probably don't need to store the helper chatlog
| SendMessageComposer(new CallForHelpFromPhotoMessageComposer(activeReport.extraData, activeReport.cfhTopic, activeReport.roomId, GetSessionDataManager().userId, activeReport.roomObjectId)); | ||
| break; | ||
| case ReportType.GUIDE: | ||
| activeReport.reportedChats.forEach(entry => chats.push(entry.webId, entry.message)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need to append any chats to the active report since the report doesn't need any chatlogs
| case ReportType.EMERGENCY: | ||
| return chatHistory.filter(chat => (chat.type === ChatEntryType.TYPE_CHAT) && (chat.webId === activeReport.reportedUserId) && (chat.entityType === RoomObjectType.USER)); | ||
| case ReportType.IM: | ||
| case ReportType.GUIDE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GUIDE report won't need to select any chatlogs so remove this line as well
|
Hi @dank074 ! I have cleaned what you asked for. But right in the file On the other hand, if we put it as it is, we send it an empty message if it works. You can check it on your own if you want! Thanks for the information 👍 |
Enabled the Report button when a user asks a Habbo Guide / Alpha / Guardian for help.