MM-13419 Fix leaving private channel from another client (#2442)
This commit is contained in:
parent
dd90f1ecc5
commit
fc02199f19
1 changed files with 2 additions and 2 deletions
|
|
@ -45,10 +45,10 @@ function mapStateToProps(state, ownProps) {
|
|||
|
||||
return {
|
||||
channelId: ownProps.channelId || (currentChannel ? currentChannel.id : ''),
|
||||
channelTeamId: currentChannel.team_id,
|
||||
channelTeamId: currentChannel ? currentChannel.team_id : '',
|
||||
canUploadFiles: canUploadFilesOnMobile(state),
|
||||
channelIsLoading: state.views.channel.loading,
|
||||
channelIsReadOnly: isCurrentChannelReadOnly(state),
|
||||
channelIsReadOnly: isCurrentChannelReadOnly(state) || false,
|
||||
channelIsArchived: ownProps.channelIsArchived || (currentChannel ? currentChannel.delete_at !== 0 : false),
|
||||
currentUserId,
|
||||
userIsOutOfOffice,
|
||||
|
|
|
|||
Loading…
Reference in a new issue