[FIX] Back button press on message actions (#592)

This commit is contained in:
Diego Mello 2019-01-30 11:33:48 -02:00 committed by GitHub
parent e416fe0c68
commit afe4ad7e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 34 deletions

View File

@ -295,7 +295,7 @@ export default class MessageActions extends React.Component {
}
handleActionPress = (actionIndex) => {
const { actionsHide } = this.props;
if (actionIndex) {
switch (actionIndex) {
case this.REPLY_INDEX:
this.handleReply();
@ -330,6 +330,8 @@ export default class MessageActions extends React.Component {
default:
break;
}
}
const { actionsHide } = this.props;
actionsHide();
}