MM-11270: Disallow to react to posts in archived channels (#2045)

This commit is contained in:
Jesús Espino 2018-08-29 20:27:12 +02:00 committed by Harrison Healey
parent 320f1d9c91
commit fb37c18c8f

View file

@ -38,7 +38,9 @@ function mapStateToProps(state, ownProps) {
const teamId = channel.team_id;
let canAddReaction = true;
if (hasNewPermissions(state)) {
if (channelIsArchived) {
canAddReaction = false;
} else if (hasNewPermissions(state)) {
canAddReaction = haveIChannelPermission(state, {
team: teamId,
channel: post.channel_id,