diff --git a/src/components/views/messages/MessageActionBar.js b/src/components/views/messages/MessageActionBar.js index fb3c53c9f0..8db268076c 100644 --- a/src/components/views/messages/MessageActionBar.js +++ b/src/components/views/messages/MessageActionBar.js @@ -145,12 +145,10 @@ export default class MessageActionBar extends React.PureComponent { let editButton; if (isContentActionable(this.props.mxEvent)) { - // `context` can be null in tests that use a subtree of components - // that don't create the context. - if (!this.context || !this.context.room || this.context.room.canReact) { + if (this.context.room.canReact) { reactButton = this.renderReactButton(); } - if (!this.context || !this.context.room || this.context.room.canReply) { + if (this.context.room.canReply) { replyButton =