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 }} 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 = { 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() { 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