Enable "Lower hand" suggestions
This commit is contained in:
@@ -157,7 +157,6 @@ import { createIdenticon } from '../util/createIdenticon';
|
|||||||
import { getColorForCallLink } from '../util/getColorForCallLink';
|
import { getColorForCallLink } from '../util/getColorForCallLink';
|
||||||
import { getUseRingrtcAdm } from '../util/ringrtc/ringrtcAdm';
|
import { getUseRingrtcAdm } from '../util/ringrtc/ringrtcAdm';
|
||||||
import OS from '../util/os/osMain';
|
import OS from '../util/os/osMain';
|
||||||
import { isLowerHandSuggestionEnabled } from '../util/isLowerHandSuggestionEnabled';
|
|
||||||
import { sleep } from '../util/sleep';
|
import { sleep } from '../util/sleep';
|
||||||
|
|
||||||
const { wasGroupCallRingPreviouslyCanceled } = DataReader;
|
const { wasGroupCallRingPreviouslyCanceled } = DataReader;
|
||||||
@@ -1578,9 +1577,6 @@ export class CallingClass {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onSpeechEvent: (_groupCall: GroupCall, event: SpeechEvent) => {
|
onSpeechEvent: (_groupCall: GroupCall, event: SpeechEvent) => {
|
||||||
if (!isLowerHandSuggestionEnabled()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
log.info('GroupCall#onSpeechEvent', event);
|
log.info('GroupCall#onSpeechEvent', event);
|
||||||
if (event === SpeechEvent.LowerHandSuggestion) {
|
if (event === SpeechEvent.LowerHandSuggestion) {
|
||||||
this.#reduxInterface?.setSuggestLowerHand(true);
|
this.#reduxInterface?.setSuggestLowerHand(true);
|
||||||
|
@@ -1,16 +0,0 @@
|
|||||||
// Copyright 2024 Signal Messenger, LLC
|
|
||||||
// SPDX-License-Identifier: AGPL-3.0-only
|
|
||||||
|
|
||||||
import * as RemoteConfig from '../RemoteConfig';
|
|
||||||
import { isProduction } from './version';
|
|
||||||
|
|
||||||
export function isLowerHandSuggestionEnabled(): boolean {
|
|
||||||
if (
|
|
||||||
isProduction(window.getVersion()) ||
|
|
||||||
!RemoteConfig.isEnabled('desktop.internalUser')
|
|
||||||
) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
Reference in New Issue
Block a user