Skip to content

Commit

Permalink
Update src/matrixrtc/MatrixRTCSession.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Robin <robin@robin.town>
  • Loading branch information
hughns and robintown authored Sep 18, 2024
1 parent 94fb839 commit f6f86c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrixrtc/MatrixRTCSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
return;
}

const keyIndexToSend = typeof indexToSend === "number" ? indexToSend : this.currentEncryptionKeyIndex;
const keyIndexToSend = indexToSend ?? this.currentEncryptionKeyIndex;
const keyToSend = myKeys[keyIndexToSend];

try {
Expand Down

0 comments on commit f6f86c5

Please sign in to comment.