You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
@@ -160,6 +160,13 @@ export interface IGeneratedSas {
|
|||||||
emoji?: EmojiMapping[];
|
emoji?: EmojiMapping[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ISasEvent {
|
||||||
|
sas: IGeneratedSas;
|
||||||
|
confirm(): Promise<void>;
|
||||||
|
cancel(): void;
|
||||||
|
mismatch(): void;
|
||||||
|
}
|
||||||
|
|
||||||
function generateSas(sasBytes: number[], methods: string[]): IGeneratedSas {
|
function generateSas(sasBytes: number[], methods: string[]): IGeneratedSas {
|
||||||
const sas: IGeneratedSas = {};
|
const sas: IGeneratedSas = {};
|
||||||
for (const method of methods) {
|
for (const method of methods) {
|
||||||
@@ -232,12 +239,7 @@ export class SAS extends Base {
|
|||||||
private waitingForAccept: boolean;
|
private waitingForAccept: boolean;
|
||||||
public ourSASPubKey: string;
|
public ourSASPubKey: string;
|
||||||
public theirSASPubKey: string;
|
public theirSASPubKey: string;
|
||||||
public sasEvent: {
|
public sasEvent: ISasEvent;
|
||||||
sas: IGeneratedSas;
|
|
||||||
confirm(): Promise<void>;
|
|
||||||
cancel(): void;
|
|
||||||
mismatch(): void;
|
|
||||||
};
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
public static get NAME(): string {
|
public static get NAME(): string {
|
||||||
|
|||||||
Reference in New Issue
Block a user