for self-verif, mention which device, not user we're verifying in panel

This commit is contained in:
Bruno Windels 2020-04-03 17:03:37 +02:00
parent 2ee780caa2
commit 030d594e67
3 changed files with 29 additions and 6 deletions

View file

@ -107,8 +107,15 @@ export default class VerificationShowSas extends React.Component {
if (this.state.pending || this.state.cancelling) {
let text;
if (this.state.pending) {
const {displayName} = this.props;
text = _t("Waiting for %(displayName)s to verify…", {displayName});
if (this.props.isSelf) {
text = _t("Waiting for your other session, %(deviceName)s (%(deviceId)s), to verify…", {
deviceName: this.props.device.getDisplayName(),
deviceId: this.props.device.deviceId,
});
} else {
const {displayName} = this.props;
text = _t("Waiting for %(displayName)s to verify…", {displayName});
}
} else {
text = _t("Cancelling…");
}