mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
literally blindly add verification buttons
This commit is contained in:
parent
071e364be2
commit
532f4e59c9
@ -37,8 +37,9 @@ module.exports = React.createClass({
|
||||
|
||||
render: function() {
|
||||
var client = MatrixClientPeg.get();
|
||||
var blacklistUnverified = (client.getGlobalBlacklistUnverifiedDevices() || room.getBlacklistUnverifiedDevices());
|
||||
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>;
|
||||
}
|
||||
else {
|
||||
@ -61,8 +62,11 @@ module.exports = React.createClass({
|
||||
<ul>
|
||||
{
|
||||
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 }>
|
||||
{ deviceId } ( { this.props.devices[userId][deviceId].getDisplayName() } )
|
||||
{ deviceId } ( { device.getDisplayName() } ) { buttons }
|
||||
</li>
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user