Vary resume link text

Use 'Switch' if unholding that call would hold another
This commit is contained in:
David Baker
2020-12-18 19:35:41 +00:00
parent 63e99ecf93
commit eab764a3c8
3 changed files with 17 additions and 2 deletions
+12
View File
@@ -616,6 +616,18 @@ export default class CallHandler {
}
}
/**
* @returns true if we are currently in anu call where we haven't put the remote party on hold
*/
hasAnyUnheldCall() {
for (const call of this.calls.values()) {
if (call.state === CallState.Ended) continue;
if (!call.isRemoteOnHold()) return true;
}
return false;
}
private async startCallApp(roomId: string, type: string) {
dis.dispatch({
action: 'appsDrawer',