Skip to content

Commit 92b52a6

Browse files
committed
don't show forward option for things we cannot decrypt
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 77ce58b commit 92b52a6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/views/context_menus/MessageContextMenu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ module.exports = React.createClass({
151151
);
152152
}
153153

154-
if (this.props.mxEvent.getType() === 'm.room.message') {
154+
if (this.props.mxEvent.getType() === 'm.room.message'
155+
&& this.props.mxEvent.getContent().msgtype !== 'm.bad.encrypted') {
155156
forwardButton = (
156157
<div className="mx_MessageContextMenu_field" onClick={this.onForwardClick}>
157158
Forward Message

0 commit comments

Comments
 (0)