Move the device verification buttons to their own class

Instead of pulling in the whole of MemberDeviceInfo into EncryptedEventDialog
for utterly no reason and breaking everything
This commit is contained in:
Richard van der Hoff 2016-09-22 19:23:34 +01:00
parent 898fbcee30
commit 2f7b4f74fd
4 changed files with 158 additions and 133 deletions

View file

@ -152,12 +152,12 @@ module.exports = React.createClass({
},
render: function() {
var MemberDeviceInfo = sdk.getComponent('rooms.MemberDeviceInfo');
var DeviceVerifyButtons = sdk.getComponent('elements.DeviceVerifyButtons');
var buttons = null;
if (this.state.device) {
buttons = (
<MemberDeviceInfo hideInfo={true} device={ this.state.device }
<DeviceVerifyButtons device={ this.state.device }
userId={ this.props.event.getSender() }
/>
);