git.iko.soy/cinny-click-packaging
on main help sign in
Fix notifications for good now
commitc03286905b699d7903f3a28b45972a6563391ef0 authorMarcel Alexandru Nitan <nitan.marcel@protonmail.com> dateThu 16 Jun 2022, 17:10 (4 years ago) parent7904974
2 files changed+17−16
manifest.json.in+1−1 patches/0008-Set-push-notifications-to-UTs-push-hook.patch+16−15
manifest.json.in+1−1
@@ -15,7 +15,7 @@
1515 "push-helper": "push/push.json"
1616 }
1717 },
18− "version": "2.0.4notificationfix",
18+ "version": "2.0.4notificationfix1",
1919 "maintainer": "Marcel Alexandru Nitan <nitan.marcel@protonmail.com>",
2020 "framework" : "@CLICK_FRAMEWORK@"
2121}
patches/0008-Set-push-notifications-to-UTs-push-hook.patch+16−15
@@ -1,25 +1,26 @@
1−From 4305381292b98fff780bef159014076897569e74 Mon Sep 17 00:00:00 2001
1+From fe881f37607a0d720b8a4d7f6b9d260173f621a5 Mon Sep 17 00:00:00 2001
22From: Marcel Alexandru Nitan <nitan.marcel@protonmail.com>
3−Date: Thu, 16 Jun 2022 16:05:12 +0300
4−Subject: [PATCH] Set push notifications to UTs push hook
3+Date: Thu, 16 Jun 2022 17:09:38 +0300
4+Subject: [PATCH] Add missing import in notification hook patch
55
66---
7− src/client/initMatrix.js | 31 +++++++++++++++++++++++++++++++
8− 1 file changed, 31 insertions(+)
7+ src/client/initMatrix.js | 32 ++++++++++++++++++++++++++++++++
8+ 1 file changed, 32 insertions(+)
99
1010diff --git a/src/client/initMatrix.js b/src/client/initMatrix.js
11−index aec2f3d..23c7598 100644
11+index aec2f3d..ac85e8e 100644
1212--- a/src/client/initMatrix.js
1313+++ b/src/client/initMatrix.js
14−@@ -2,6 +2,7 @@ import EventEmitter from 'events';
15− import * as sdk from 'matrix-js-sdk';
16− // import { logger } from 'matrix-js-sdk/lib/logger';
14+@@ -9,6 +9,8 @@ import RoomsInput from './state/RoomsInput';
15+ import Notifications from './state/Notifications';
16+ import { cryptoCallbacks } from './state/secretStorageKeys';
1717
18−+import { cons } from './state/cons';
19− import { secret } from './state/auth';
20− import RoomList from './state/RoomList';
21− import AccountData from './state/AccountData';
22−@@ -18,6 +19,12 @@ class InitMatrix extends EventEmitter {
18++import cons from './state/cons';
19++
20+ global.Olm = require('@matrix-org/olm');
21+
22+ // logger.disableAll();
23+@@ -18,6 +20,12 @@ class InitMatrix extends EventEmitter {
2324 await this.startClient();
2425 this.setupSync();
2526 this.listenEvents();
@@ -32,7 +33,7 @@ index aec2f3d..23c7598 100644
3233 }
3334
3435 async startClient() {
35−@@ -51,6 +58,30 @@ class InitMatrix extends EventEmitter {
36+@@ -51,6 +59,30 @@ class InitMatrix extends EventEmitter {
3637 this.matrixClient.setGlobalErrorOnUnknownDevices(false);
3738 }
3839