We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
VerificationRequest
1 parent 4c90703 commit 6ac3762Copy full SHA for 6ac3762
src/crypto/verification/request/VerificationRequest.ts
@@ -163,6 +163,22 @@ export class VerificationRequest<C extends IVerificationChannel = IVerificationC
163
return true;
164
}
165
166
+ /**
167
+ * Unique ID for this verification request.
168
+ *
169
+ * An ID isn't assigned until the first message is sent, so this may be `undefined` in the early phases.
170
+ */
171
+ public get transactionId(): string | undefined {
172
+ return this.channel.transactionId;
173
+ }
174
+
175
176
+ * For an in-room verification, the ID of the room.
177
178
+ public get roomId(): string | undefined {
179
+ return this.channel.roomId;
180
181
182
public get invalid(): boolean {
183
return this.phase === PHASE_UNSENT;
184
0 commit comments