You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Define NAME as a property higher up
This commit is contained in:
@@ -45,6 +45,10 @@ export class ReciprocateQRCode extends Base {
|
|||||||
return new ReciprocateQRCode(...args);
|
return new ReciprocateQRCode(...args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static get NAME() {
|
||||||
|
return "m.reciprocate.v1";
|
||||||
|
}
|
||||||
|
|
||||||
async _doVerification() {
|
async _doVerification() {
|
||||||
const code = await new Promise((resolve, reject) => {
|
const code = await new Promise((resolve, reject) => {
|
||||||
this.emit("scan", {
|
this.emit("scan", {
|
||||||
@@ -124,5 +128,3 @@ export class ReciprocateQRCode extends Base {
|
|||||||
return {action, secret, otherUserKey, keys, targetUserId};
|
return {action, secret, otherUserKey, keys, targetUserId};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReciprocateQRCode.NAME = "m.reciprocate.v1";
|
|
||||||
|
|||||||
Reference in New Issue
Block a user