1
0
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:
Travis Ralston
2020-01-29 10:52:26 +00:00
parent fd563bda6a
commit f689142806

View File

@@ -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";