mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Merge pull request #2240 from Bilb/enable-calls-remove-featureflag
Sesion 1.8.4 with calls enabled
This commit is contained in:
commit
8d83d99b26
6 changed files with 13 additions and 22 deletions
|
@ -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",
|
||||
|
|
|
@ -31,7 +31,6 @@ window.getNodeVersion = () => config.node_version;
|
|||
|
||||
window.sessionFeatureFlags = {
|
||||
useOnionRequests: true,
|
||||
useCallMessage: true,
|
||||
};
|
||||
|
||||
window.versionInfo = {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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
1
ts/window.d.ts
vendored
|
@ -38,7 +38,6 @@ declare global {
|
|||
log: any;
|
||||
sessionFeatureFlags: {
|
||||
useOnionRequests: boolean;
|
||||
useCallMessage: boolean;
|
||||
};
|
||||
SessionSnodeAPI: SessionSnodeAPI;
|
||||
onLogin: any;
|
||||
|
|
Loading…
Reference in a new issue