You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
literally blindly add verification buttons
This commit is contained in:
@@ -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>
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user