Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
elm
element-web
matrix-js-sdk
Commits
b788fe8c
Unverified
Commit
b788fe8c
authored
11 months ago
by
Michael Telatynski
Browse files
Options
Download
Email Patches
Plain Diff
Iterate
Signed-off-by:
Michael Telatynski
<
7t3chguy@gmail.com
>
parent
a398a946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/rendezvous/MSC4108SignInWithQR.ts
src/rendezvous/MSC4108SignInWithQR.ts
+5
-5
No files found.
src/rendezvous/MSC4108SignInWithQR.ts
View file @
b788fe8c
...
...
@@ -280,13 +280,13 @@ export class MSC4108SignInWithQR {
});
// then wait for secrets
logger
.
info
(
"
Waiting for secrets message
"
);
const
secrets
=
await
this
.
receive
<
SecretsPayload
|
any
>
();
if
(
secrets
?.
type
===
PayloadType
.
Failure
)
{
const
{
reason
}
=
secrets
as
FailureP
ayload
;
const
payload
=
await
this
.
receive
<
SecretsPayload
|
FailurePayload
>
();
if
(
payload
?.
type
===
PayloadType
.
Failure
)
{
const
{
reason
}
=
p
ayload
;
throw
new
RendezvousError
(
"
Failed
"
,
reason
);
}
if
(
secrets
?.
type
!==
PayloadType
.
Secrets
)
{
if
(
payload
?.
type
!==
PayloadType
.
Secrets
)
{
await
this
.
send
<
FailurePayload
>
({
type
:
PayloadType
.
Failure
,
reason
:
MSC4108FailureReason
.
UnexpectedMessageReceived
,
...
...
@@ -296,7 +296,7 @@ export class MSC4108SignInWithQR {
MSC4108FailureReason
.
UnexpectedMessageReceived
,
);
}
return
{
secrets
};
return
{
secrets
:
payload
};
// then done?
}
else
{
if
(
!
this
.
expectingNewDeviceId
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment