1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Maximised widgets always force a call to be shown in PIP mode (#7163)

This commit is contained in:
Timo
2021-11-25 22:14:19 +01:00
committed by GitHub
parent ae0dba4e87
commit 37828ab084
2 changed files with 41 additions and 17 deletions

View File

@@ -380,6 +380,16 @@ export default class CallHandler extends EventEmitter {
return callsNotInThatRoom;
}
public getAllActiveCallsForPip(roomId: string) {
const room = MatrixClientPeg.get().getRoom(roomId);
if (WidgetLayoutStore.instance.hasMaximisedWidget(room)) {
// This checks if there is space for the call view in the aux panel
// If there is no space any call should be displayed in PiP
return this.getAllActiveCalls();
}
return this.getAllActiveCallsNotInRoom(roomId);
}
getTransfereeForCallId(callId: string): MatrixCall {
return this.transferees[callId];
}