Fix disabled state of the composer
This commit is contained in:
parent
3cafed478c
commit
fedb5b9f63
3 changed files with 11 additions and 4 deletions
|
@ -477,6 +477,10 @@ export default class SendMessageComposer extends React.Component {
|
|||
}
|
||||
|
||||
onAction = (payload) => {
|
||||
// don't let the user into the composer if it is disabled - all of these branches lead
|
||||
// to the cursor being in the composer
|
||||
if (this.props.disabled) return;
|
||||
|
||||
switch (payload.action) {
|
||||
case 'reply_to_event':
|
||||
case Action.FocusComposer:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue