Merge pull request #13 from oxen-io/master

Merge oxen-io master
pull/3257/head
Audric Ackermann 4 months ago committed by GitHub
commit 3f1e7fe268
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -31,6 +31,7 @@ jobs:
build_linux: build_linux:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false
matrix: matrix:
# this needs to be a valid target of https://www.electron.build/linux#target # this needs to be a valid target of https://www.electron.build/linux#target
pkg_to_build: ['deb', 'rpm', 'freebsd', 'AppImage'] pkg_to_build: ['deb', 'rpm', 'freebsd', 'AppImage']
@ -118,7 +119,7 @@ jobs:
# We want a mac arm64 build, and according to this https://github.com/actions/runner-images#available-images macos-14 is always arm64 # We want a mac arm64 build, and according to this https://github.com/actions/runner-images#available-images macos-14 is always arm64
# macos-14 is disabled for now as we hit our free tier limit for macos builds # macos-14 is disabled for now as we hit our free tier limit for macos builds
build_macos_x64: build_macos_x64:
runs-on: macos-12 runs-on: macos-13
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAC_CERTIFICATE: ${{ secrets.MAC_CERTIFICATE }} MAC_CERTIFICATE: ${{ secrets.MAC_CERTIFICATE }}

@ -80,7 +80,6 @@ Building on windows should work straight out of the box, but if it fails then yo
``` ```
npm install --global --production windows-build-tools@4.0.0 npm install --global --production windows-build-tools@4.0.0
npm install --global node-gyp@latest
npm config set python python2.7 npm config set python python2.7
npm config set msvs_version 2015 npm config set msvs_version 2015
``` ```

@ -22,12 +22,6 @@ runs:
uses: microsoft/setup-msbuild@v2 uses: microsoft/setup-msbuild@v2
if: runner.os == 'Windows' if: runner.os == 'Windows'
- name: Setup node for windows
if: runner.os == 'Windows'
shell: bash
run: |
yarn global add node-gyp@latest
- uses: actions/cache/restore@v4 - uses: actions/cache/restore@v4
id: cache-desktop-modules id: cache-desktop-modules
with: with:

@ -2,7 +2,7 @@
"name": "session-desktop", "name": "session-desktop",
"productName": "Session", "productName": "Session",
"description": "Private messaging from your desktop", "description": "Private messaging from your desktop",
"version": "1.14.2", "version": "1.14.3",
"license": "GPL-3.0", "license": "GPL-3.0",
"author": { "author": {
"name": "Oxen Labs", "name": "Oxen Labs",
@ -10,7 +10,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/oxen-io/session-desktop.git" "url": "https://github.com/session-foundation/session-desktop.git"
}, },
"main": "ts/mains/main_node.js", "main": "ts/mains/main_node.js",
"resolutions": { "resolutions": {

@ -91,7 +91,7 @@ export async function unblockConvoById(conversationId: string) {
export const approveConvoAndSendResponse = async (conversationId: string) => { export const approveConvoAndSendResponse = async (conversationId: string) => {
const convoToApprove = getConversationController().get(conversationId); const convoToApprove = getConversationController().get(conversationId);
if (!convoToApprove) { if (!convoToApprove || convoToApprove.isApproved()) {
window?.log?.info('Conversation is already approved.'); window?.log?.info('Conversation is already approved.');
return; return;
} }

@ -35,6 +35,7 @@ import { MessageSender } from '../../sending';
import { getIsRinging } from '../RingingManager'; import { getIsRinging } from '../RingingManager';
import { getBlackSilenceMediaStream } from './Silence'; import { getBlackSilenceMediaStream } from './Silence';
import { ed25519Str } from '../String'; import { ed25519Str } from '../String';
import { sleepFor } from '../Promise';
export type InputItem = { deviceId: string; label: string }; export type InputItem = { deviceId: string; label: string };
@ -534,6 +535,10 @@ export async function USER_callRecipient(recipient: string) {
calledConvo.set('active_at', Date.now()); // addSingleOutgoingMessage does the commit for us on the convo calledConvo.set('active_at', Date.now()); // addSingleOutgoingMessage does the commit for us on the convo
await calledConvo.unhideIfNeeded(false); await calledConvo.unhideIfNeeded(false);
weAreCallerOnCurrentCall = true; weAreCallerOnCurrentCall = true;
// Not ideal, but also temporary (see you in 2 years).
// We need to make sure the preoffer AND the messageRequestResponse sent in
// approveConvoAndSendResponse have different timestamps, as iOS will throw an error otherwise
await sleepFor(2);
// initiating a call is analogous to sending a message request // initiating a call is analogous to sending a message request
await approveConvoAndSendResponse(recipient); await approveConvoAndSendResponse(recipient);

Loading…
Cancel
Save