FIX: Include 'notify staff' separator in chat message flag modal (#23301)

When flagging a chat message, and options included both notifying user and notifying staff, the modal was missing the separating text. This was happening because the #staffFlagsAvailable method was based on post flags, and the model for chat flags is slightly different. This fixes that by delegating to the relevant flag target object.
This commit is contained in:
Ted Johansson
2023-08-29 15:26:14 +08:00
committed by GitHub
parent e562bb1f43
commit 7a4119846c
4 changed files with 4 additions and 18 deletions
@@ -24,10 +24,6 @@ export default class ChatMessageFlag {
return false;
}
includeSeparator() {
return true;
}
_rewriteFlagDescriptions(flags) {
return flags.map((flag) => {
flag.set(