From 4738c9b4f909c3ddcd76d7eae7cc01f8238b1b33 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 26 Jul 2023 14:48:15 +0930 Subject: [PATCH] Fix v2 --- .../securesms/notifications/GenericPushManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/org/thoughtcrime/securesms/notifications/GenericPushManager.kt b/app/src/main/kotlin/org/thoughtcrime/securesms/notifications/GenericPushManager.kt index ce4210fcfd..471affcd24 100644 --- a/app/src/main/kotlin/org/thoughtcrime/securesms/notifications/GenericPushManager.kt +++ b/app/src/main/kotlin/org/thoughtcrime/securesms/notifications/GenericPushManager.kt @@ -71,7 +71,7 @@ class GenericPushManager @Inject constructor( } val v2 = pushManagerV2.register( - Device.ANDROID, token, publicKey, userEd25519Key, namespaces + device, token, publicKey, userEd25519Key, namespaces ) fail { Log.e(TAG, "register v2 failed", it) } @@ -87,7 +87,7 @@ class GenericPushManager @Inject constructor( userPublicKey: String, userEdKey: KeyPair ): Promise<*, Exception> = PushManagerV1.unregister() and pushManagerV2.unregister( - Device.ANDROID, token, userPublicKey, userEdKey + device, token, userPublicKey, userEdKey ) fail { Log.e(TAG, "unregisterBoth failed", it) } success {