Add getCallById()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
f94230c292
commit
20c5735e96
1 changed files with 6 additions and 0 deletions
|
@ -301,6 +301,12 @@ export default class CallHandler extends EventEmitter {
|
|||
}, true);
|
||||
}
|
||||
|
||||
public getCallById(callId: string): MatrixCall {
|
||||
for (const call of this.calls.values()) {
|
||||
if (call.callId === callId) return call;
|
||||
}
|
||||
}
|
||||
|
||||
getCallForRoom(roomId: string): MatrixCall {
|
||||
return this.calls.get(roomId) || null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue