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
delayBeforeuse => delayBeforeUse for consistency (#4344)
This commit is contained in:
@@ -404,7 +404,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
|
|||||||
* @param deviceId - Device ID of the participant
|
* @param deviceId - Device ID of the participant
|
||||||
* @param encryptionKeyIndex - The index of the key to set
|
* @param encryptionKeyIndex - The index of the key to set
|
||||||
* @param encryptionKeyString - The string representation of the key to set in base64
|
* @param encryptionKeyString - The string representation of the key to set in base64
|
||||||
* @param delayBeforeuse - If true, delay before emitting a key changed event. Useful when setting
|
* @param delayBeforeUse - If true, delay before emitting a key changed event. Useful when setting
|
||||||
* encryption keys for the local participant to allow time for the key to
|
* encryption keys for the local participant to allow time for the key to
|
||||||
* be distributed.
|
* be distributed.
|
||||||
*/
|
*/
|
||||||
@@ -413,7 +413,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
|
|||||||
deviceId: string,
|
deviceId: string,
|
||||||
encryptionKeyIndex: number,
|
encryptionKeyIndex: number,
|
||||||
encryptionKeyString: string,
|
encryptionKeyString: string,
|
||||||
delayBeforeuse = false,
|
delayBeforeUse = false,
|
||||||
): void {
|
): void {
|
||||||
const keyBin = decodeBase64(encryptionKeyString);
|
const keyBin = decodeBase64(encryptionKeyString);
|
||||||
|
|
||||||
@@ -424,7 +424,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
|
|||||||
|
|
||||||
encryptionKeys[encryptionKeyIndex] = keyBin;
|
encryptionKeys[encryptionKeyIndex] = keyBin;
|
||||||
this.encryptionKeys.set(participantId, encryptionKeys);
|
this.encryptionKeys.set(participantId, encryptionKeys);
|
||||||
if (delayBeforeuse) {
|
if (delayBeforeUse) {
|
||||||
const useKeyTimeout = setTimeout(() => {
|
const useKeyTimeout = setTimeout(() => {
|
||||||
this.setNewKeyTimeouts.delete(useKeyTimeout);
|
this.setNewKeyTimeouts.delete(useKeyTimeout);
|
||||||
logger.info(`Delayed-emitting key changed event for ${participantId} idx ${encryptionKeyIndex}`);
|
logger.info(`Delayed-emitting key changed event for ${participantId} idx ${encryptionKeyIndex}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user