mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Add explaining comment
This commit is contained in:
parent
b2043206e3
commit
827f29cef3
@ -27,6 +27,10 @@ type Options = BaseOptions & {
|
||||
|
||||
export abstract class DismissibleVerificationViewModel<O extends Options> extends ErrorReportViewModel<SegmentType, O> {
|
||||
dismiss(): void {
|
||||
/**
|
||||
* If we're cross-signing another user, redirect to the room (which will just close the right panel).
|
||||
* If we're verifying a device, redirect to settings.
|
||||
*/
|
||||
if (this.getOption("sas").isCrossSigningAnotherUser) {
|
||||
const path = this.navigation.path.until("room");
|
||||
this.navigation.applyPath(path);
|
||||
|
Loading…
Reference in New Issue
Block a user