Skip to content

Commit 84d6562

Browse files
committed
Merge remote-tracking branch 'upstream/master' into dev
2 parents 4b0ff9d + 1948066 commit 84d6562

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

.github/workflows/build-binaries.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,29 @@ jobs:
9393
electron_target: deb
9494
cache_suffix: linux-deb
9595
is_qa: false
96+
generate_release_metadata: true
9697
- identifier: rpm
9798
electron_target: rpm
9899
cache_suffix: linux-rpm
99100
is_qa: false
100-
- identifier: freebsd
101-
electron_target: freebsd
102-
cache_suffix: linux-freebsd
103-
is_qa: false
101+
generate_release_metadata: true
104102
- identifier: AppImage
105103
electron_target: AppImage
106104
cache_suffix: linux-AppImage
107105
is_qa: false
108-
- identifier: deb-qa
109-
electron_target: deb
110-
cache_suffix: linux-deb
111-
is_qa: true
106+
generate_release_metadata: true
107+
- identifier: freebsd
108+
electron_target: freebsd
109+
cache_suffix: linux-freebsd
110+
is_qa: false
111+
generate_release_metadata: false
112+
# Note: this deb-qa is currently broken. The deb and deb-qa are currently overwriting each others
113+
# during build-release-publish and maybe the upload-artefact too.
114+
# - identifier: deb-qa
115+
# electron_target: deb
116+
# cache_suffix: linux-deb
117+
# is_qa: true
118+
# generate_release_metadata: false
112119
name: '${{ matrix.identifier }}'
113120

114121
env:
@@ -164,15 +171,15 @@ jobs:
164171
# only run this on "push" to "master" or alpha releases
165172
# Note: The jobs are overwriting each other's latest-linux.yml.
166173
# So, we upload all of them as artifacts, and then merge them (see `post_build_linux`)
167-
# note: freebsd does not generate a latest-linux.yml file so we exclude it
168-
if: ${{ needs.create_draft_release_if_needed.outputs.version_tag != '' && matrix.identifier != 'freebsd' }}
174+
# note: freebsd does not generate a latest-linux.yml file so we exclude it, same for the deb-qa build
175+
if: ${{ needs.create_draft_release_if_needed.outputs.version_tag != '' && matrix.generate_release_metadata == true }}
169176
shell: bash
170177
run: |
171178
mv dist/latest-linux.yml dist/latest-linux-${{ matrix.electron_target }}-${{ github.sha }}.yml
172179
173180
- name: Upload release metadata
174181
# only run this on "push" to "master" or alpha releases
175-
if: ${{ needs.create_draft_release_if_needed.outputs.version_tag != '' && matrix.identifier != 'freebsd' }}
182+
if: ${{ needs.create_draft_release_if_needed.outputs.version_tag != '' && matrix.generate_release_metadata == true }}
176183
uses: actions/upload-artifact@v4
177184
with:
178185
name: latest-linux-${{ matrix.electron_target }}-${{ github.sha }}.yml

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "session-desktop",
33
"productName": "Session",
44
"description": "Private messaging from your desktop",
5-
"version": "1.17.0",
5+
"version": "1.17.2",
66
"license": "GPL-3.0",
77
"author": {
88
"name": "Session Foundation",

ts/components/menuAndSettingsHooks/useShowUserDetailsCb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function useShowUserDetailsCbFromMessage() {
6060
resolvedNakedId && resolvedNakedId !== sender ? resolvedNakedId : undefined;
6161
}
6262

63-
if (foundRealSessionId && foundRealSessionId.startsWith(KeyPrefixType.standard)) {
63+
if (!foundRealSessionId || foundRealSessionId.startsWith(KeyPrefixType.blinded15)) {
6464
await ConvoHub.use().get(sender).setOriginConversationID(selectedConvoKey, true);
6565
}
6666

ts/mains/main_node.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ const getRealPath = (p: string) => fs.realpathSync(p);
4545
app.commandLine.appendSwitch('disable-renderer-backgrounding');
4646
app.commandLine.appendSwitch('disable-background-timer-throttling');
4747
app.commandLine.appendSwitch('disable-backgrounding-occluded-windows');
48-
powerSaveBlocker.start('prevent-app-suspension');
48+
if (!process.env.SESSION_ALLOW_APP_SUSPENSION) {
49+
console.log('SESSION_ALLOW_APP_SUSPENSION is not set, so we prevent app suspension');
50+
powerSaveBlocker.start('prevent-app-suspension');
51+
} else {
52+
console.log('SESSION_ALLOW_APP_SUSPENSION is set, so we do not prevent app suspension');
53+
}
4954

5055
// Hardcoding appId to prevent build failures on release.
5156
// const appUserModelId = packageJson.build.appId;

0 commit comments

Comments
 (0)