mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
don't show forward option for things we cannot decrypt
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
77ce58b59d
commit
92b52a61e7
@ -151,7 +151,8 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.props.mxEvent.getType() === 'm.room.message') {
|
if (this.props.mxEvent.getType() === 'm.room.message'
|
||||||
|
&& this.props.mxEvent.getContent().msgtype !== 'm.bad.encrypted') {
|
||||||
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 New Issue
Block a user