From a11b078d5b771fe25fbb8a6639c4ab51d3f250cf Mon Sep 17 00:00:00 2001 From: Ian Macdonald Date: Tue, 15 Mar 2022 08:43:02 +0100 Subject: [PATCH 1/4] Allow user names up to 26 characters long, in line with Android. See https://github.com/oxen-io/session-android/blob/master/libsession/src/main/java/org/session/libsession/utilities/SSKEnvironment.kt#L29 --- ts/components/registration/RegistrationStages.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/registration/RegistrationStages.tsx b/ts/components/registration/RegistrationStages.tsx index 0e5767359..80b0f1b0f 100644 --- a/ts/components/registration/RegistrationStages.tsx +++ b/ts/components/registration/RegistrationStages.tsx @@ -16,7 +16,7 @@ import { } from '../../util/accountManager'; import { fromHex } from '../../session/utils/String'; -export const MAX_USERNAME_LENGTH = 20; +export const MAX_USERNAME_LENGTH = 26; // tslint:disable: use-simple-attributes export async function resetRegistration() { From 74cf88cf8124d9cb17ec92357752ffa914923b1a Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 16 Mar 2022 10:49:19 +1100 Subject: [PATCH 2/4] create closed group mark as approved also, do not filter closed group based on the isApproved field in redux --- ts/models/conversation.ts | 5 ++--- ts/receiver/closedGroups.ts | 2 +- ts/receiver/contentMessage.ts | 3 ++- ts/session/group/closed-group.ts | 1 - ts/session/utils/calling/CallManager.ts | 1 - ts/state/selectors/conversations.ts | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index b18165411..20be3cc2e 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -776,7 +776,6 @@ export class ConversationModel extends Backbone.Model { messageRequestResponse: { isApproved: 1, }, - unread: 1, // 1 means unread expireTimer: 0, }); @@ -945,7 +944,6 @@ export class ConversationModel extends Backbone.Model { if (isOutgoing) { message = await this.addSingleOutgoingMessage({ ...commonAttributes, - unread: 0, sent_at: timestamp, }); } else { @@ -1017,7 +1015,7 @@ export class ConversationModel extends Backbone.Model { public async addSingleOutgoingMessage( messageAttributes: Omit< MessageAttributesOptionals, - 'conversationId' | 'source' | 'type' | 'direction' | 'received_at' + 'conversationId' | 'source' | 'type' | 'direction' | 'received_at' | 'unread' > ) { return this.addSingleMessage({ @@ -1026,6 +1024,7 @@ export class ConversationModel extends Backbone.Model { source: UserUtils.getOurPubKeyStrFromCache(), type: 'outgoing', direction: 'outgoing', + unread: 0, // an outgoing message must be read right? received_at: messageAttributes.sent_at, // make sure to set an received_at timestamp for an outgoing message, so the order are right. }); } diff --git a/ts/receiver/closedGroups.ts b/ts/receiver/closedGroups.ts index 7f88d44c0..54de697c0 100644 --- a/ts/receiver/closedGroups.ts +++ b/ts/receiver/closedGroups.ts @@ -954,7 +954,7 @@ export async function createClosedGroup(groupName: string, members: Array Date: Wed, 16 Mar 2022 10:55:43 +1100 Subject: [PATCH 3/4] update github actions windows runner to windows-2019 --- .github/workflows/build-binaries.yml | 2 +- .github/workflows/pull-request.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 9b990e5bf..1f020ff99 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -15,7 +15,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2016, macos-latest, ubuntu-18.04] + os: [windows-2019, macos-latest, ubuntu-18.04] env: SIGNAL_ENV: production GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 607f2b8db..ba0c5e56c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2016, macos-latest, ubuntu-18.04] + os: [windows-2019, macos-latest, ubuntu-18.04] env: SIGNAL_ENV: production GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff61e6f9d..24f8cafa5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-2016, macos-latest, ubuntu-18.04] + os: [windows-2019, macos-latest, ubuntu-18.04] env: SIGNAL_ENV: production GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 7bc81038a1a88bda38943f0abce332ebe8aac719 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 16 Mar 2022 14:13:04 +1100 Subject: [PATCH 4/4] Session 1.8.2 with callMessage --- package.json | 2 +- preload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4deefea3c..742aec818 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "session-desktop", "productName": "Session", "description": "Private messaging from your desktop", - "version": "1.7.8", + "version": "1.8.2", "license": "GPL-3.0", "author": { "name": "Oxen Labs", diff --git a/preload.js b/preload.js index 77d1c83fb..3d1cef324 100644 --- a/preload.js +++ b/preload.js @@ -31,7 +31,7 @@ window.getNodeVersion = () => config.node_version; window.sessionFeatureFlags = { useOnionRequests: true, - useCallMessage: false, + useCallMessage: true, }; window.versionInfo = {