Revert "MM-24113 Support 'leave' slash command (#4273)" (#4280)

This reverts commit fd450f9988.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
This commit is contained in:
Mattermost Build 2020-05-07 19:47:11 +02:00 committed by GitHub
parent a1ee76b0c4
commit af580f0e69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -14,7 +14,7 @@ import {isLandscape} from 'app/selectors/device';
import SlashSuggestion from './slash_suggestion';
// TODO: Remove when all below commands have been implemented
const COMMANDS_TO_IMPLEMENT_LATER = ['collapse', 'expand', 'join', 'open', 'logout', 'msg', 'grpmsg'];
const COMMANDS_TO_IMPLEMENT_LATER = ['collapse', 'expand', 'join', 'open', 'leave', 'logout', 'msg', 'grpmsg'];
const NON_MOBILE_COMMANDS = ['rename', 'invite_people', 'shortcuts', 'search', 'help', 'settings', 'remove'];
const COMMANDS_TO_HIDE_ON_MOBILE = [...COMMANDS_TO_IMPLEMENT_LATER, ...NON_MOBILE_COMMANDS];

View file

@ -52,7 +52,6 @@ export default class ChannelAndroid extends ChannelBase {
<PostTextbox
ref={this.postTextbox}
screenId={this.props.componentId}
key={this.props.currentChannelId}
/>
</KeyboardLayout>
<NetworkIndicator/>