Fix a crash when using the duplicate tiles option (#2512)
This commit is contained in:
@@ -596,7 +596,12 @@ export class CallViewModel extends ViewModel {
|
|||||||
return combineLatest(
|
return combineLatest(
|
||||||
[this.grid, this.spotlight, this.screenShares],
|
[this.grid, this.spotlight, this.screenShares],
|
||||||
(grid, spotlight, screenShares): Layout =>
|
(grid, spotlight, screenShares): Layout =>
|
||||||
grid.length == 2 && screenShares.length === 0
|
grid.length == 2 &&
|
||||||
|
// There might not be a remote tile if only the local user
|
||||||
|
// is in the call and they're using the duplicate tiles
|
||||||
|
// option
|
||||||
|
grid.some((vm) => !vm.local) &&
|
||||||
|
screenShares.length === 0
|
||||||
? {
|
? {
|
||||||
type: "one-on-one",
|
type: "one-on-one",
|
||||||
local: grid.find(
|
local: grid.find(
|
||||||
|
|||||||
Reference in New Issue
Block a user