You've already forked matrix-react-sdk
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:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user