git.iko.soy/cinny-click-packaging
on main help sign in
Fix push notifications
commit421e633034044a2d6dced27beaec21f552f6fa79 authorMarcel Alexandru Nitan <nitan.marcel@protonmail.com> dateTue 14 Jun 2022, 13:46 (4 years ago) parent7080250
1 file changed+9−8
patches/0008-Set-push-notifications-to-UTs-push-hook.patch+9−8
patches/0008-Set-push-notifications-to-UTs-push-hook.patch+9−8
@@ -1,17 +1,17 @@
1−From 920ca66972190687262e5539b0a841d9b8bda6e3 Mon Sep 17 00:00:00 2001
1+From a47256cf63eaefc54a0a2ec5fec876e90c138d51 Mon Sep 17 00:00:00 2001
22From: Marcel Alexandru Nitan <nitan.marcel@protonmail.com>
3−Date: Mon, 4 Apr 2022 21:19:30 +0300
3+Date: Tue, 14 Jun 2022 13:44:39 +0300
44Subject: [PATCH] Set push notifications to UTs push hook
55
66---
7− src/client/initMatrix.js | 35 +++++++++++++++++++++++++++++++++++
8− 1 file changed, 35 insertions(+)
7+ src/client/initMatrix.js | 36 ++++++++++++++++++++++++++++++++++++
8+ 1 file changed, 36 insertions(+)
99
1010diff --git a/src/client/initMatrix.js b/src/client/initMatrix.js
11−index f6fc9eb..663a2bf 100644
11+index aec2f3d..7dfa8a6 100644
1212--- a/src/client/initMatrix.js
1313+++ b/src/client/initMatrix.js
14−@@ -17,6 +17,18 @@ class InitMatrix extends EventEmitter {
14+@@ -18,6 +18,18 @@ class InitMatrix extends EventEmitter {
1515 await this.startClient();
1616 this.setupSync();
1717 this.listenEvents();
@@ -30,7 +30,7 @@ index f6fc9eb..663a2bf 100644
3030 }
3131
3232 async startClient() {
33−@@ -46,6 +58,29 @@ class InitMatrix extends EventEmitter {
33+@@ -51,6 +63,30 @@ class InitMatrix extends EventEmitter {
3434 this.matrixClient.setGlobalErrorOnUnknownDevices(false);
3535 }
3636
@@ -54,7 +54,8 @@ index f6fc9eb..663a2bf 100644
5454+ },
5555+ function () {}
5656+ ))
57−+ this.matrixClient.setPushRuleEnabled('global', 'content', '.m.rule.contains_user_name', true, function () {})
57++ promises.push(this.matrixClient.setPushRuleEnabled('global', 'content', '.m.rule.contains_user_name', true, function () {}))
58++ Promise.all(promises)
5859+ }
5960+
6061 setupSync() {