MM-13419 Fix leaving private channel from another client (#2442)

This commit is contained in:
Elias Nahum 2018-12-10 10:55:01 -03:00
parent dd90f1ecc5
commit fc02199f19
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -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,