Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Jan 29, 2024
1 parent bca836b commit 5a13780
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/src/e2ee/e2ee_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,9 @@ class E2EEManager {
/// @param keyIndex the key index to set
///
Future<void> setKeyIndex(int keyIndex) async {
var identity = _room?.localParticipant?.identity;
if (identity != null) {
for (var item in _frameCryptors.entries) {
if (item.key.keys.first == identity) {
await item.value.setKeyIndex(keyIndex);
}
for (var item in _frameCryptors.entries) {
if (item.key.keys.first == _room?.localParticipant?.identity) {
await item.value.setKeyIndex(keyIndex);
}
}
}
Expand Down

0 comments on commit 5a13780

Please sign in to comment.