diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 18dc9e7f6..d86fb0059 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,5 +1,4 @@ { - "privacyPolicy": "Terms & Privacy Policy", "copyErrorAndQuit": "Copy error and quit", "unknown": "Unknown", "databaseError": "Database Error", @@ -17,7 +16,6 @@ "editMenuCut": "Cut", "editMenuCopy": "Copy", "editMenuPaste": "Paste", - "editMenuPasteAndMatchStyle": "Paste and Match Style", "editMenuDelete": "Delete", "editMenuDeleteContact": "Delete Contact", "editMenuDeleteGroup": "Delete Group", @@ -25,7 +23,6 @@ "windowMenuClose": "Close Window", "windowMenuMinimize": "Minimize", "windowMenuZoom": "Zoom", - "windowMenuBringAllToFront": "Bring All to Front", "viewMenuResetZoom": "Actual Size", "viewMenuZoomIn": "Zoom In", "viewMenuZoomOut": "Zoom Out", @@ -455,7 +452,7 @@ "noAudioOutputFound": "No audio output found", "callMediaPermissionsTitle": "Voice and video calls", "callMissedCausePermission": "Call missed from '$name$' because you need to enable the 'Voice and video calls' permission in the Privacy Settings.", - "callMissedNotApproved": "Call missed from '$name$' as you haven't approved this conversation yet. Send a message to him first.", + "callMissedNotApproved": "Call missed from '$name$' as you haven't approved this conversation yet. Send a message to them first.", "callMediaPermissionsDescription": "Allows access to accept voice and video calls from other users", "callMediaPermissionsDialogContent": "The current implementation of voice/video calls will expose your IP address to the Oxen Foundation servers and the calling/called user.", "menuCall": "Call", diff --git a/app/config.js b/app/config.js index 695dce47f..6c784183f 100644 --- a/app/config.js +++ b/app/config.js @@ -7,7 +7,6 @@ let environment; // In production mode, NODE_ENV cannot be customized by the user if (isDevelopment) { environment = process.env.NODE_ENV || 'development'; - process.env.LOKI_DEV = 1; } else { environment = 'production'; } diff --git a/app/menu.js b/app/menu.js index 80aa3aaaa..d83edc2a6 100644 --- a/app/menu.js +++ b/app/menu.js @@ -54,10 +54,6 @@ exports.createTemplate = (options, messages) => { role: 'paste', label: messages.editMenuPaste, }, - { - role: 'pasteandmatchstyle', - label: messages.editMenuPasteAndMatchStyle, - }, { role: 'delete', label: messages.editMenuDelete, @@ -242,13 +238,6 @@ function updateForMac(template, messages, options) { label: messages.show, click: showWindow, }, - { - type: 'separator', - }, - { - role: 'front', - label: messages.windowMenuBringAllToFront, - }, ]; return template; diff --git a/app/spell_check.js b/app/spell_check.js index 7dd49890a..a6c7f52be 100644 --- a/app/spell_check.js +++ b/app/spell_check.js @@ -65,13 +65,6 @@ exports.setup = (browserWindow, messages) => { template.push({ label: messages.editMenuPaste, role: 'paste' }); } - if (editFlags.canPaste) { - template.push({ - label: messages.editMenuPasteAndMatchStyle, - role: 'pasteAndMatchStyle', - }); - } - // Only enable select all in editors because select all in non-editors // results in all the UI being selected if (editFlags.canSelectAll && params.isEditable) { diff --git a/debug_log.html b/debug_log.html index f0b7b0262..8932956d4 100644 --- a/debug_log.html +++ b/debug_log.html @@ -1,7 +1,8 @@ -
- - - - - - - + - - - - - + + + + + + diff --git a/fix_broken_perms.sh b/fix_broken_perms.sh index dd2cf97e0..a48d1f6d8 100755 --- a/fix_broken_perms.sh +++ b/fix_broken_perms.sh @@ -1,4 +1,4 @@ set -e find release/linux -type d | xargs chmod 755 find release/linux -type f | xargs chmod 644 -chmod +x release/linux/loki-messenger* +chmod +x release/linux/session-desktop* diff --git a/js/modules/signal.js b/js/modules/signal.js index 716f8d528..2b87017bb 100644 --- a/js/modules/signal.js +++ b/js/modules/signal.js @@ -19,9 +19,6 @@ const { SessionInboxView } = require('../../ts/components/SessionInboxView'); // Types const SettingsType = require('../../ts/types/Settings'); -// Views -const Initialization = require('./views/initialization'); - exports.setup = () => { Data.init(); @@ -35,10 +32,6 @@ exports.setup = () => { Settings: SettingsType, }; - const Views = { - Initialization, - }; - return { Components, Crypto, @@ -49,6 +42,5 @@ exports.setup = () => { Settings, Types, Util, - Views, }; }; diff --git a/js/modules/views/initialization.js b/js/modules/views/initialization.js deleted file mode 100644 index 1f70e32da..000000000 --- a/js/modules/views/initialization.js +++ /dev/null @@ -1,47 +0,0 @@ -/* eslint-env browser */ - -/* global i18n: false */ - -const DISPLAY_THRESHOLD = 3000; // milliseconds -const SELECTOR = '.app-loading-screen .message'; - -let timeout; -let targetString; -let didTimeout = false; - -const clear = () => { - if (timeout) { - clearTimeout(timeout); - timeout = null; - } -}; - -const setMessage = loadingText => { - const message = document.querySelector(SELECTOR); - if (!message) { - return clear; - } - - targetString = loadingText || i18n('optimizingApplication'); - - message.innerText = didTimeout ? targetString : i18n('loading'); - - if (timeout) { - return clear; - } - - timeout = setTimeout(() => { - didTimeout = true; - const innerMessage = document.querySelector(SELECTOR); - if (!innerMessage) { - return; - } - innerMessage.innerText = targetString; - }, DISPLAY_THRESHOLD); - - return clear; -}; - -module.exports = { - setMessage, -}; diff --git a/main.js b/main.js index 6bb540edf..60e8518a5 100644 --- a/main.js +++ b/main.js @@ -28,7 +28,7 @@ const { systemPreferences, } = electron; -// FIXME Hardcoding appId to prevent build failrues on release. +// FIXME Hardcoding appId to prevent build failures on release. // const appUserModelId = packageJson.build.appId; const appUserModelId = 'com.loki-project.messenger-desktop'; console.log('Set Windows Application User Model ID (AUMID)', { @@ -986,7 +986,7 @@ ipc.on('set-call-media-permissions', (event, value) => { event.sender.send('set-success-call-media-permissions', null); }); -// Loki - Auto updating +// Session - Auto updating ipc.on('get-auto-update-setting', event => { const configValue = userConfig.get('autoUpdate'); // eslint-disable-next-line no-param-reassign @@ -1011,19 +1011,19 @@ function getThemeFromMainWindow() { }); } -function askForMediaAccess() { +async function askForMediaAccess() { // Microphone part let status = systemPreferences.getMediaAccessStatus('microphone'); if (status !== 'granted') { - systemPreferences.askForMediaAccess('microphone'); + await systemPreferences.askForMediaAccess('microphone'); } // Camera part status = systemPreferences.getMediaAccessStatus('camera'); if (status !== 'granted') { - systemPreferences.askForMediaAccess('camera'); + await systemPreferences.askForMediaAccess('camera'); } } -ipc.on('media-access', () => { +ipc.on('media-access', async () => { askForMediaAccess(); }); diff --git a/package.json b/package.json index 472fbfd36..c0b353927 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,12 @@ "version": "1.8.1", "license": "GPL-3.0", "author": { - "name": "Loki Project", - "email": "team@loki.network" + "name": "Oxen Labs", + "email": "team@oxen.io" }, "repository": { "type": "git", - "url": "https://github.com/loki-project/session-desktop.git" + "url": "https://github.com/oxen-io/session-desktop.git" }, "main": "main.js", "scripts": { @@ -232,7 +232,7 @@ }, "win": { "asarUnpack": "node_modules/spellchecker/vendor/hunspell_dictionaries", - "publisherName": "Loki Project", + "publisherName": "Oxen Labs", "verifyUpdateCodeSignature": false, "icon": "build/icon.ico", "target": [ diff --git a/preload.js b/preload.js index efb76ac24..49411a915 100644 --- a/preload.js +++ b/preload.js @@ -28,7 +28,7 @@ window.isDev = () => config.environment === 'development'; window.getCommitHash = () => config.commitHash; window.getNodeVersion = () => config.node_version; -window.lokiFeatureFlags = { +window.sessionFeatureFlags = { useOnionRequests: true, useCallMessage: true, }; diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx index fa92abf00..c8ae281d6 100644 --- a/ts/components/conversation/ConversationHeader.tsx +++ b/ts/components/conversation/ConversationHeader.tsx @@ -215,7 +215,7 @@ const CallButton = () => { isMe || !selectedConvoKey || isBlocked || - !window.lokiFeatureFlags.useCallMessage + !window.sessionFeatureFlags.useCallMessage ) { return null; } diff --git a/ts/components/settings/section/CategoryPrivacy.tsx b/ts/components/settings/section/CategoryPrivacy.tsx index 45c85e837..6b8fe7a00 100644 --- a/ts/components/settings/section/CategoryPrivacy.tsx +++ b/ts/components/settings/section/CategoryPrivacy.tsx @@ -70,7 +70,7 @@ export const SettingsCategoryPrivacy = (props: { description={window.i18n('mediaPermissionsDescription')} active={Boolean(window.getSettingValue('media-permissions'))} /> - {window.lokiFeatureFlags.useCallMessage && ( + {window.sessionFeatureFlags.useCallMessage && (