Add feature flag for ADM2 on Windows
This commit is contained in:
parent
8256170066
commit
3bd3207e18
3 changed files with 23 additions and 7 deletions
|
@ -57,6 +57,7 @@ import {
|
|||
} from '../types/Calling';
|
||||
import {
|
||||
AudioDeviceModule,
|
||||
getAudioDeviceModule,
|
||||
parseAudioDeviceModule,
|
||||
} from '../calling/audioDeviceModule';
|
||||
import {
|
||||
|
@ -65,7 +66,6 @@ import {
|
|||
} from '../calling/findBestMatchingDevice';
|
||||
import type { LocalizerType } from '../types/Util';
|
||||
import { UUID } from '../types/UUID';
|
||||
import * as OS from '../OS';
|
||||
import type { ConversationModel } from '../models/conversations';
|
||||
import * as Bytes from '../Bytes';
|
||||
import { uuidToBytes, bytesToUuid } from '../Crypto';
|
||||
|
@ -74,7 +74,6 @@ import { getOwn } from '../util/getOwn';
|
|||
import { isNormalNumber } from '../util/isNormalNumber';
|
||||
import * as durations from '../util/durations';
|
||||
import { handleMessageSend } from '../util/handleMessageSend';
|
||||
import { isAlpha, isBeta } from '../util/version';
|
||||
import {
|
||||
fetchMembershipProof,
|
||||
getMembershipList,
|
||||
|
@ -257,11 +256,7 @@ export class CallingClass {
|
|||
this.previousAudioDeviceModule = parseAudioDeviceModule(
|
||||
window.storage.get('previousAudioDeviceModule')
|
||||
);
|
||||
this.currentAudioDeviceModule =
|
||||
OS.isWindows() &&
|
||||
(isAlpha(window.getVersion()) || isBeta(window.getVersion()))
|
||||
? AudioDeviceModule.WindowsAdm2
|
||||
: AudioDeviceModule.Default;
|
||||
this.currentAudioDeviceModule = getAudioDeviceModule();
|
||||
window.storage.put(
|
||||
'previousAudioDeviceModule',
|
||||
this.currentAudioDeviceModule
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue