+ );
+
var callButton, videoCallButton, hangupButton;
if (this.props.callState && this.props.callState !== 'ended') {
hangupButton =
@@ -109,25 +117,47 @@ module.exports = React.createClass({
}
+ var canSendMessages = this.props.room.currentState.maySendMessage(
+ MatrixClientPeg.get().credentials.userId);
+
+ if (canSendMessages) {
+ // This also currently includes the call buttons. Really we should
+ // check separately for whether we can call, but this is slightly
+ // complex because of conference calls.
+ var uploadButton = (
+