MM-11270: Disallow to react to posts in archived channels (#2045)
This commit is contained in:
parent
320f1d9c91
commit
fb37c18c8f
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue