You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
support scrollable content for UnknownDeviceDialog
This commit is contained in:
@ -177,7 +177,7 @@ class ModalManager {
|
||||
|
||||
var modal = this._modals[0];
|
||||
var dialog = (
|
||||
<div className={"mx_Dialog_wrapper " + modal.className}>
|
||||
<div className={"mx_Dialog_wrapper " + (modal.className ? modal.className : '') }>
|
||||
<div className="mx_Dialog">
|
||||
{modal.elem}
|
||||
</div>
|
||||
|
@ -33,7 +33,7 @@ module.exports = {
|
||||
var UnknownDeviceDialog = sdk.getComponent("dialogs.UnknownDeviceDialog");
|
||||
Modal.createDialog(UnknownDeviceDialog, {
|
||||
devices: err.devices
|
||||
});
|
||||
}, "mx_Dialog_unknownDevice");
|
||||
}
|
||||
|
||||
dis.dispatch({
|
||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
||||
import React from 'react';
|
||||
import sdk from '../../../index';
|
||||
import MatrixClientPeg from '../../../MatrixClientPeg';
|
||||
import GeminiScrollbar from 'react-gemini-scrollbar';
|
||||
|
||||
function UserUnknownDeviceList(props) {
|
||||
const {userDevices} = props;
|
||||
@ -81,12 +82,12 @@ export default React.createClass({
|
||||
onFinished={this.props.onFinished}
|
||||
title='Room contains unknown devices'
|
||||
>
|
||||
<div className="mx_Dialog_content">
|
||||
<GeminiScrollbar autoshow={true} className="mx_Dialog_content">
|
||||
<h4>This room contains devices which have not been
|
||||
verified.</h4>
|
||||
<p>
|
||||
This means there is no guarantee that the devices belong
|
||||
to a valid user of the room.
|
||||
to a rightful user of the room.
|
||||
</p><p>
|
||||
We recommend you go through the verification process
|
||||
for each device before continuing, but you can resend
|
||||
@ -94,7 +95,7 @@ export default React.createClass({
|
||||
</p>
|
||||
<p>Unknown devices:</p>
|
||||
<UnknownDeviceList devices={this.props.devices} />
|
||||
</div>
|
||||
</GeminiScrollbar>
|
||||
<div className="mx_Dialog_buttons">
|
||||
<button className="mx_Dialog_primary" autoFocus={ true }
|
||||
onClick={ this.props.onFinished } >
|
||||
|
@ -34,7 +34,7 @@ export function onSendMessageFailed(err) {
|
||||
const UnknownDeviceDialog = sdk.getComponent("dialogs.UnknownDeviceDialog");
|
||||
Modal.createDialog(UnknownDeviceDialog, {
|
||||
devices: err.devices,
|
||||
});
|
||||
}, "mx_Dialog_unknownDevice");
|
||||
}
|
||||
dis.dispatch({
|
||||
action: 'message_send_failed',
|
||||
|
Reference in New Issue
Block a user