literally blindly add verification buttons
This commit is contained in:
parent
071e364be2
commit
532f4e59c9
1 changed files with 6 additions and 2 deletions
|
@ -37,8 +37,9 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var client = MatrixClientPeg.get();
|
var client = MatrixClientPeg.get();
|
||||||
|
var blacklistUnverified = (client.getGlobalBlacklistUnverifiedDevices() || room.getBlacklistUnverifiedDevices());
|
||||||
var warning;
|
var warning;
|
||||||
if (client.getGlobalBlacklistUnverifiedDevices() || room.getBlacklistUnverifiedDevices()) {
|
if (blacklistUnverified) {
|
||||||
warning = <h4>You are currently blacklisting unverified devices; to send messages to these devices you must verify them.<h4>;
|
warning = <h4>You are currently blacklisting unverified devices; to send messages to these devices you must verify them.<h4>;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -61,8 +62,11 @@ module.exports = React.createClass({
|
||||||
<ul>
|
<ul>
|
||||||
{
|
{
|
||||||
Object.keys(this.props.devices[userId]).map(deviceId=>{
|
Object.keys(this.props.devices[userId]).map(deviceId=>{
|
||||||
|
var DeviceVerifyButtons = sdk.getComponent('elements.DeviceVerifyButtons');
|
||||||
|
var device = this.props.devices[userId][deviceId];
|
||||||
|
var buttons = <DeviceVerifyButtons device={ device } userId={ userId } />
|
||||||
return <li key={ deviceId }>
|
return <li key={ deviceId }>
|
||||||
{ deviceId } ( { this.props.devices[userId][deviceId].getDisplayName() } )
|
{ deviceId } ( { device.getDisplayName() } ) { buttons }
|
||||||
</li>
|
</li>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue