A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
vendor(livekit): await setParameters in setDegradationPreference (#2375)
Hampus497a494c3774
diff --git a/fluxer_app/pkgs/livekit-client/src/room/track/LocalVideoTrack.ts b/fluxer_app/pkgs/livekit-client/src/room/track/LocalVideoTrack.tsindex 4f0486715..459372919 100644--- a/fluxer_app/pkgs/livekit-client/src/room/track/LocalVideoTrack.ts+++ b/fluxer_app/pkgs/livekit-client/src/room/track/LocalVideoTrack.ts@@ -276,7 +276,7 @@ export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {this.log.debug(`setting degradationPreference to ${preference}`, this.logContext);const params = this.sender.getParameters();params.degradationPreference = preference;- this.sender.setParameters(params);+ await this.sender.setParameters(params);} catch (e: unknown) {this.log.warn(`failed to set degradationPreference`, {error: e, ...this.logContext});}