mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 13:02:44 +00:00
Use more compact optional chaining and coalescing notation
This commit is contained in:
1 parent
9481dc401c
commit
2f3f9f95eb
1 file changed
+1
-5
@@ -60,11 +60,7 @@ export class ConnectionManagerData {
|
||||
transport: LivekitTransport,
|
||||
): (LocalParticipant | RemoteParticipant)[] {
|
||||
const key = transport.livekit_service_url + "|" + transport.livekit_alias;
|
||||
const existing = this.store.get(key);
|
||||
if (existing) {
|
||||
return existing[1];
|
||||
}
|
||||
return [];
|
||||
return this.store.get(key)?.[1] ?? [];
|
||||
}
|
||||
/**
|
||||
* Get all connections where the given participant is publishing.
|
||||
|
||||
Reference in new issue
Block a user