only for finalised events
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
7676fd960e
commit
7777be89ee
1 changed files with 2 additions and 4 deletions
|
@ -151,11 +151,9 @@ module.exports = React.createClass({
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.mxEvent.getType() === 'm.room.message') {
|
if (!eventStatus && this.props.mxEvent.getType() === 'm.room.message') {
|
||||||
const content = this.props.mxEvent.getContent();
|
const content = this.props.mxEvent.getContent();
|
||||||
if (content.msgtype // truthy check msgtype
|
if (content.msgtype && content.msgtype !== 'm.bad.encrypted' && content.hasOwnProperty('body')) {
|
||||||
&& content.msgtype !== 'm.bad.encrypted'
|
|
||||||
&& content.hasOwnProperty('body')) {
|
|
||||||
forwardButton = (
|
forwardButton = (
|
||||||
<div className="mx_MessageContextMenu_field" onClick={this.onForwardClick}>
|
<div className="mx_MessageContextMenu_field" onClick={this.onForwardClick}>
|
||||||
Forward Message
|
Forward Message
|
||||||
|
|
Loading…
Reference in a new issue