Merge pull request #2240 from Bilb/enable-calls-remove-featureflag

Sesion 1.8.4 with calls enabled
This commit is contained in:
Audric Ackermann 2022-04-01 16:01:13 +11:00 committed by GitHub
commit 8d83d99b26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 22 deletions

View file

@ -2,7 +2,7 @@
"name": "session-desktop",
"productName": "Session",
"description": "Private messaging from your desktop",
"version": "1.7.9",
"version": "1.8.4",
"license": "GPL-3.0",
"author": {
"name": "Oxen Labs",

View file

@ -31,7 +31,6 @@ window.getNodeVersion = () => config.node_version;
window.sessionFeatureFlags = {
useOnionRequests: true,
useCallMessage: true,
};
window.versionInfo = {

View file

@ -210,13 +210,7 @@ const CallButton = () => {
const hasOngoingCall = useSelector(getHasOngoingCall);
const canCall = !(hasIncomingCall || hasOngoingCall);
if (
!isPrivate ||
isMe ||
!selectedConvoKey ||
isBlocked ||
!window.sessionFeatureFlags.useCallMessage
) {
if (!isPrivate || isMe || !selectedConvoKey || isBlocked) {
return null;
}

View file

@ -69,17 +69,16 @@ export const SettingsCategoryPrivacy = (props: {
description={window.i18n('mediaPermissionsDescription')}
active={Boolean(window.getSettingValue('media-permissions'))}
/>
{window.sessionFeatureFlags.useCallMessage && (
<SessionToggleWithDescription
onClickToggle={async () => {
await toggleCallMediaPermissions(forceUpdate);
forceUpdate();
}}
title={window.i18n('callMediaPermissionsTitle')}
description={window.i18n('callMediaPermissionsDescription')}
active={Boolean(window.getCallMediaPermissions())}
/>
)}
<SessionToggleWithDescription
onClickToggle={async () => {
await toggleCallMediaPermissions(forceUpdate);
forceUpdate();
}}
title={window.i18n('callMediaPermissionsTitle')}
description={window.i18n('callMediaPermissionsDescription')}
active={Boolean(window.getCallMediaPermissions())}
/>
<SessionToggleWithDescription
onClickToggle={() => {
const old = Boolean(window.getSettingValue(SettingsKey.settingsReadReceipt));

View file

@ -425,7 +425,7 @@ export async function innerHandleSwarmContentMessage(
if (content.unsendMessage) {
await handleUnsendMessage(envelope, content.unsendMessage as SignalService.Unsend);
}
if (content.callMessage && window.sessionFeatureFlags?.useCallMessage) {
if (content.callMessage) {
await handleCallMessage(envelope, content.callMessage as SignalService.CallMessage);
}
if (content.messageRequestResponse) {

1
ts/window.d.ts vendored
View file

@ -38,7 +38,6 @@ declare global {
log: any;
sessionFeatureFlags: {
useOnionRequests: boolean;
useCallMessage: boolean;
};
SessionSnodeAPI: SessionSnodeAPI;
onLogin: any;