jitsi / lib-jitsi-meet

A low-level JS video API that allows adding a completely custom video experience to web apps.
Apache License 2.0
1.34k stars 1.11k forks source link

fix(ReceiveVideoController) fix setting lastN to 0 #2555

Closed saghul closed 3 months ago

saghul commented 3 months ago

When lastN is first set to some truty value and then 0, it wouldn't be set because we relied on a "truthyness" check.

Check if the value is undefined so it can be set to 0.