Basic menu item for message replies.

This commit is contained in:
aforge
2021-07-20 18:19:34 +03:00
parent a24ee01b37
commit 1961e76699
3 changed files with 21 additions and 0 deletions
+4
View File
@@ -60,6 +60,10 @@ export default class ChatMessage extends React.Component {
e.preventDefault();
e.stopPropagation();
const menuItems = this.props.received == Tinode.MESSAGE_STATUS_FAILED ? ['menu_item_send_retry'] : [];
if (this.props.received >= Tinode.MESSAGE_STATUS_FAILED &&
this.props.received < Tinode.MESSAGE_STATUS_DEL_RANGE) {
menuItems.push('menu_item_reply');
}
this.props.showContextMenu({ seq: this.props.seq, content: this.props.content,
y: e.pageY, x: e.pageX }, menuItems);
}