summaryrefslogtreecommitdiffstats
path: root/app/src/main/java/app/fedilab/android/services/CustomReceiver.java
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/app/fedilab/android/services/CustomReceiver.java')
-rw-r--r--app/src/main/java/app/fedilab/android/services/CustomReceiver.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/src/main/java/app/fedilab/android/services/CustomReceiver.java b/app/src/main/java/app/fedilab/android/services/CustomReceiver.java
index f87ded11c..a6eb6f77a 100644
--- a/app/src/main/java/app/fedilab/android/services/CustomReceiver.java
+++ b/app/src/main/java/app/fedilab/android/services/CustomReceiver.java
@@ -40,11 +40,12 @@ public class CustomReceiver extends MessagingReceiver {
// Called when a new message is received. The message contains the full POST body of the push message
new Thread(() -> {
try {
- /* ECDH ecdh = ECDH.getInstance(slug);
- if (ecdh == null) {
- return;
- }*/
- //String decrypted = ecdh.uncryptMessage(context, String.valueOf(message));
+ /*Notification notification = ECDHFedilab.decryptNotification(context, slug, message);
+ Log.v(Helper.TAG,"notification: " + notification);
+ if(notification != null) {
+ Log.v(Helper.TAG,"id: " + notification.id);
+ }
+ */
NotificationsHelper.task(context, slug);
} catch (Exception e) {
e.printStackTrace();