Interface IEncryptionManagerInternal

This interface is for testing and for making it possible to interchange the encryption manager.

interface IEncryptionManager {
    statistics: Statistics;
    getEncryptionKeys(): Map<string, { key: Uint8Array; timestamp: number }[]>;
    join(joinConfig: undefined | EncryptionConfig): void;
    leave(): void;
    onCallEncryptionEventReceived(event: MatrixEvent): void;
    onMembershipsUpdate(oldMemberships: CallMembership[]): Promise<void>;
}

Properties

statistics: Statistics

Methods

  • Process m.call.encryption_keys events to track the encryption keys for call participants. This should be called each time the relevant event is received from a room timeline. If the event is malformed then it will be logged and ignored.

    Parameters

    Returns void