Show a warning dialog when user indicates a new session wasn't them
This commit is contained in:
parent
866fdd6185
commit
9ed83b8648
3 changed files with 30 additions and 1 deletions
|
@ -42,6 +42,12 @@ export default class UnverifiedSessionToast extends React.PureComponent {
|
|||
Modal.createTrackedDialog('New Session Review', 'Starting dialog', NewSessionReviewDialog, {
|
||||
userId: MatrixClientPeg.get().getUserId(),
|
||||
device,
|
||||
onFinished: (r) => {
|
||||
if (!r) {
|
||||
/* This'll come back false if the user clicks "this wasn't me" and saw a warning dialog */
|
||||
this._onLaterClick();
|
||||
}
|
||||
},
|
||||
}, null, /* priority = */ false, /* static = */ true);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue