Skip to content

Commit 39b980a

Browse files
committed
fix(place/meet): joining rooms with merged outputs
1 parent fc74a9c commit 39b980a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/place/meet.cr

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,14 @@ class Place::Meet < PlaceOS::Driver
448448
# merge in outputs from remote rooms
449449
remote_outputs = room.local_outputs.get.as_a.map(&.as_s)
450450
remote_outputs.each_with_index do |remote_out, index|
451-
next if seen_outputs.includes? remote_out
452-
seen_outputs << remote_out
453-
454451
if join_mode.merge_outputs? && (local_out = available_outputs[index]?)
455452
new_linked_outputs[local_out][remote_system_id] = remote_out
456-
else
457-
available_outputs << remote_out
453+
elsif seen_outputs.includes? remote_out
454+
next
458455
end
456+
457+
available_outputs << remote_out
458+
seen_outputs << remote_out
459459
end
460460
end
461461
end

0 commit comments

Comments
 (0)