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
Comply with new member-delimiter-style rule
Just `eslint --fix` with rule from https://github.com/matrix-org/eslint-plugin-matrix-org/pull/9 in place
This commit is contained in:
@@ -7637,7 +7637,7 @@ export class MatrixClient extends EventEmitter {
|
||||
*/
|
||||
public sendToDevice(
|
||||
eventType: string,
|
||||
contentMap: { [userId: string]: { [deviceId: string]: Record<string, any>; } },
|
||||
contentMap: { [userId: string]: { [deviceId: string]: Record<string, any> } },
|
||||
txnId?: string,
|
||||
): Promise<{}> {
|
||||
const path = utils.encodeUri("/sendToDevice/$eventType/$txnId", {
|
||||
|
||||
@@ -36,16 +36,16 @@ const KEY_BACKUP_KEYS_PER_REQUEST = 200;
|
||||
type AuthData = IKeyBackupInfo["auth_data"];
|
||||
|
||||
type SigInfo = {
|
||||
deviceId: string,
|
||||
valid?: boolean | null, // true: valid, false: invalid, null: cannot attempt validation
|
||||
device?: DeviceInfo | null,
|
||||
crossSigningId?: boolean,
|
||||
deviceTrust?: DeviceTrustLevel,
|
||||
deviceId: string;
|
||||
valid?: boolean | null; // true: valid, false: invalid, null: cannot attempt validation
|
||||
device?: DeviceInfo | null;
|
||||
crossSigningId?: boolean;
|
||||
deviceTrust?: DeviceTrustLevel;
|
||||
};
|
||||
|
||||
export type TrustInfo = {
|
||||
usable: boolean, // is the backup trusted, true iff there is a sig that is valid & from a trusted device
|
||||
sigs: SigInfo[],
|
||||
usable: boolean; // is the backup trusted, true iff there is a sig that is valid & from a trusted device
|
||||
sigs: SigInfo[];
|
||||
};
|
||||
|
||||
export interface IKeyBackupCheck {
|
||||
|
||||
@@ -114,7 +114,7 @@ interface IRoomKey {
|
||||
|
||||
export interface IRoomKeyRequestBody extends IRoomKey {
|
||||
session_id: string;
|
||||
sender_key: string
|
||||
sender_key: string;
|
||||
}
|
||||
|
||||
export interface IMegolmSessionData {
|
||||
@@ -166,7 +166,7 @@ export interface IRoomKeyRequestRecipient {
|
||||
|
||||
interface ISignableObject {
|
||||
signatures?: object;
|
||||
unsigned?: object
|
||||
unsigned?: object;
|
||||
}
|
||||
|
||||
export interface IEventDecryptionResult {
|
||||
|
||||
@@ -31,7 +31,7 @@ interface IAuthData {
|
||||
interface IKey {
|
||||
key: Uint8Array;
|
||||
salt: string;
|
||||
iterations: number
|
||||
iterations: number;
|
||||
}
|
||||
|
||||
export async function keyFromAuthData(authData: IAuthData, password: string): Promise<Uint8Array> {
|
||||
|
||||
@@ -120,9 +120,9 @@ interface IEventRelation {
|
||||
interface IDecryptionResult {
|
||||
clearEvent: {
|
||||
room_id?: string;
|
||||
type: string,
|
||||
content: IContent,
|
||||
unsigned?: IUnsigned,
|
||||
type: string;
|
||||
content: IContent;
|
||||
unsigned?: IUnsigned;
|
||||
};
|
||||
forwardingCurve25519KeyChain?: string[];
|
||||
senderCurve25519Key?: string;
|
||||
|
||||
@@ -56,22 +56,22 @@ import { CallFeed } from './callFeed';
|
||||
*/
|
||||
|
||||
interface CallOpts {
|
||||
roomId?: string,
|
||||
client?: any, // Fix when client is TSified
|
||||
forceTURN?: boolean,
|
||||
turnServers?: Array<TurnServer>,
|
||||
roomId?: string;
|
||||
client?: any; // Fix when client is TSified
|
||||
forceTURN?: boolean;
|
||||
turnServers?: Array<TurnServer>;
|
||||
}
|
||||
|
||||
interface TurnServer {
|
||||
urls: Array<string>,
|
||||
username?: string,
|
||||
password?: string,
|
||||
ttl?: number,
|
||||
urls: Array<string>;
|
||||
username?: string;
|
||||
password?: string;
|
||||
ttl?: number;
|
||||
}
|
||||
|
||||
interface AssertedIdentity {
|
||||
id: string,
|
||||
displayName: string,
|
||||
id: string;
|
||||
displayName: string;
|
||||
}
|
||||
|
||||
export enum CallState {
|
||||
|
||||
Reference in New Issue
Block a user