[FIX] Back button press on message actions (#592)
This commit is contained in:
parent
e416fe0c68
commit
afe4ad7e3d
|
@ -295,41 +295,43 @@ export default class MessageActions extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleActionPress = (actionIndex) => {
|
handleActionPress = (actionIndex) => {
|
||||||
const { actionsHide } = this.props;
|
if (actionIndex) {
|
||||||
switch (actionIndex) {
|
switch (actionIndex) {
|
||||||
case this.REPLY_INDEX:
|
case this.REPLY_INDEX:
|
||||||
this.handleReply();
|
this.handleReply();
|
||||||
break;
|
break;
|
||||||
case this.EDIT_INDEX:
|
case this.EDIT_INDEX:
|
||||||
this.handleEdit();
|
this.handleEdit();
|
||||||
break;
|
break;
|
||||||
case this.PERMALINK_INDEX:
|
case this.PERMALINK_INDEX:
|
||||||
this.handlePermalink();
|
this.handlePermalink();
|
||||||
break;
|
break;
|
||||||
case this.COPY_INDEX:
|
case this.COPY_INDEX:
|
||||||
this.handleCopy();
|
this.handleCopy();
|
||||||
break;
|
break;
|
||||||
case this.SHARE_INDEX:
|
case this.SHARE_INDEX:
|
||||||
this.handleShare();
|
this.handleShare();
|
||||||
break;
|
break;
|
||||||
case this.QUOTE_INDEX:
|
case this.QUOTE_INDEX:
|
||||||
this.handleQuote();
|
this.handleQuote();
|
||||||
break;
|
break;
|
||||||
case this.STAR_INDEX:
|
case this.STAR_INDEX:
|
||||||
this.handleStar();
|
this.handleStar();
|
||||||
break;
|
break;
|
||||||
case this.PIN_INDEX:
|
case this.PIN_INDEX:
|
||||||
this.handlePin();
|
this.handlePin();
|
||||||
break;
|
break;
|
||||||
case this.REACTION_INDEX:
|
case this.REACTION_INDEX:
|
||||||
this.handleReaction();
|
this.handleReaction();
|
||||||
break;
|
break;
|
||||||
case this.DELETE_INDEX:
|
case this.DELETE_INDEX:
|
||||||
this.handleDelete();
|
this.handleDelete();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
const { actionsHide } = this.props;
|
||||||
actionsHide();
|
actionsHide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue