1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

s/IP/ip/; s/from/at/

This commit is contained in:
Matthew Hodgson
2021-03-08 16:44:14 +00:00
parent 7abc48a716
commit 1629b7e62a
3 changed files with 9 additions and 9 deletions

View File

@@ -38,7 +38,7 @@ interface IProps {
interface IState {
counter: number;
device?: DeviceInfo;
IP?: string;
ip?: string;
}
export default class VerificationRequestToast extends React.PureComponent<IProps, IState> {
@@ -71,10 +71,10 @@ export default class VerificationRequestToast extends React.PureComponent<IProps
if (request.isSelfVerification) {
const cli = MatrixClientPeg.get();
const device = await cli.getDevice(request.channel.deviceId);
const IP = device.last_seen_ip;
const ip = device.last_seen_ip;
this.setState({
device: cli.getStoredDevice(cli.getUserId(), request.channel.deviceId),
IP,
ip,
});
}
}
@@ -141,10 +141,10 @@ export default class VerificationRequestToast extends React.PureComponent<IProps
let nameLabel;
if (request.isSelfVerification) {
if (this.state.device) {
nameLabel = _t("From %(deviceName)s (%(deviceId)s) from %(IP)s", {
nameLabel = _t("From %(deviceName)s (%(deviceId)s) at %(ip)s", {
deviceName: this.state.device.getDisplayName(),
deviceId: this.state.device.deviceId,
IP: this.state.IP,
ip: this.state.ip,
});
}
} else {