always use multi sfu if we are using sticky events.

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2025-10-20 17:07:07 +02:00
parent 63be9939b1
commit e523776d06
2 changed files with 5 additions and 7 deletions

View File

@@ -123,12 +123,8 @@ export async function enterRTCSession(
useMultiSfu: true,
},
): Promise<void> {
const {
encryptMedia,
useExperimentalToDeviceTransport = false,
useMultiSfu = true,
} = options;
const { encryptMedia, useExperimentalToDeviceTransport = false } = options;
const useMultiSfu = preferStickyEvents.getValue() ?? options.useMultiSfu;
PosthogAnalytics.instance.eventCallEnded.cacheStartCall(new Date());
PosthogAnalytics.instance.eventCallStarted.track(rtcSession.room.roomId);

View File

@@ -199,7 +199,9 @@ export const DeveloperSettingsTab: FC<Props> = ({ client, livekitRooms }) => {
id="multiSfu"
type="checkbox"
label={t("developer_mode.multi_sfu")}
checked={multiSfu}
// If using sticky events we implicitly prefer use multi-sfu
checked={multiSfu || preferStickyEvents}
disabled={preferStickyEvents}
onChange={useCallback(
(event: ChangeEvent<HTMLInputElement>): void => {
setMultiSfu(event.target.checked);