Skip to content

Commit

Permalink
[FIX] Back button press on message actions (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello committed Jan 30, 2019
1 parent e416fe0 commit afe4ad7
Showing 1 changed file with 36 additions and 34 deletions.
70 changes: 36 additions & 34 deletions app/containers/MessageActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,41 +295,43 @@ export default class MessageActions extends React.Component {
}

handleActionPress = (actionIndex) => {
const { actionsHide } = this.props;
switch (actionIndex) {
case this.REPLY_INDEX:
this.handleReply();
break;
case this.EDIT_INDEX:
this.handleEdit();
break;
case this.PERMALINK_INDEX:
this.handlePermalink();
break;
case this.COPY_INDEX:
this.handleCopy();
break;
case this.SHARE_INDEX:
this.handleShare();
break;
case this.QUOTE_INDEX:
this.handleQuote();
break;
case this.STAR_INDEX:
this.handleStar();
break;
case this.PIN_INDEX:
this.handlePin();
break;
case this.REACTION_INDEX:
this.handleReaction();
break;
case this.DELETE_INDEX:
this.handleDelete();
break;
default:
break;
if (actionIndex) {
switch (actionIndex) {
case this.REPLY_INDEX:
this.handleReply();
break;
case this.EDIT_INDEX:
this.handleEdit();
break;
case this.PERMALINK_INDEX:
this.handlePermalink();
break;
case this.COPY_INDEX:
this.handleCopy();
break;
case this.SHARE_INDEX:
this.handleShare();
break;
case this.QUOTE_INDEX:
this.handleQuote();
break;
case this.STAR_INDEX:
this.handleStar();
break;
case this.PIN_INDEX:
this.handlePin();
break;
case this.REACTION_INDEX:
this.handleReaction();
break;
case this.DELETE_INDEX:
this.handleDelete();
break;
default:
break;
}
}
const { actionsHide } = this.props;
actionsHide();
}

Expand Down

0 comments on commit afe4ad7

Please sign in to comment.