Unverified Commit fa27af5a authored by Sarah Otts's avatar Sarah Otts Committed by GitHub

Merge pull request #4880 from seotts/automod-messaging-all-types

Show correct mute messaging instead of always the general message
parents 61e04044 9d08b69b
......@@ -104,7 +104,7 @@ class ComposeComment extends React.Component {
muteOpen = true;
}
showWarning = body.status.mute_status.showWarning;
muteType = body.status.mute_status.muteType;
muteType = body.status.mute_status.currentMessageType;
this.setupMuteExpirationTimeout(muteExpiresAtMs);
}
// Note: does not reset the message state
......@@ -204,7 +204,7 @@ class ComposeComment extends React.Component {
vulgarity: {
commentType: 'comment.type.vulgarity',
muteStepHeader: 'comment.vulgarity.header',
muteStepContent: ['comment.vulgarity.content1', 'comment.vulgar.content2']
muteStepContent: ['comment.vulgarity.content1', 'comment.vulgarity.content2']
},
general: {
commentType: 'comment.type.disrespectful',
......@@ -212,7 +212,7 @@ class ComposeComment extends React.Component {
muteStepContent: ['comment.disrespectful.content1', 'comment.disrespectful.content2']
}
};
if (this.state.muteType && messageInfo[this.state.muteType]) {
return messageInfo[this.state.muteType];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment