Apply strictNullChecks
to src/stores/widgets/* (#10324)
* Apply `strictNullChecks` to src/stores/widgets/* * Iterate * Iterate
This commit is contained in:
parent
0c1c3f1cde
commit
c0e40217f3
11 changed files with 59 additions and 55 deletions
|
@ -458,7 +458,7 @@ export default class LegacyCallHandler extends EventEmitter {
|
|||
|
||||
public getAllActiveCallsForPip(roomId: string): MatrixCall[] {
|
||||
const room = MatrixClientPeg.get().getRoom(roomId);
|
||||
if (WidgetLayoutStore.instance.hasMaximisedWidget(room)) {
|
||||
if (room && 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue