From 74cf88cf8124d9cb17ec92357752ffa914923b1a Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 16 Mar 2022 10:49:19 +1100 Subject: [PATCH 1/2] 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 2/2] 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 }}