Bläddra i källkod

Push request: Remove wakeup type (#587)

It has been obsoleted by the connectionInfo message.
Danilo Bargen 7 år sedan
förälder
incheckning
1031f6cd45
2 ändrade filer med 0 tillägg och 10 borttagningar
  1. 0 3
      src/services/push.ts
  2. 0 7
      src/threema.d.ts

+ 0 - 3
src/services/push.ts

@@ -22,7 +22,6 @@ export class PushService {
     private static ARG_TOKEN = 'token';
     private static ARG_SESSION = 'session';
     private static ARG_VERSION = 'version';
-    private static ARG_WAKEUP_TYPE = 'wakeup';
     private static ARG_ENDPOINT = 'endpoint';
     private static ARG_BUNDLE_ID = 'bundleid';
 
@@ -87,8 +86,6 @@ export class PushService {
             [PushService.ARG_TYPE]: this.pushType,
             [PushService.ARG_SESSION]: sessionHash,
             [PushService.ARG_VERSION]: this.version,
-            // Note: Wakeup type has been obsoleted by connectionInfo
-            [PushService.ARG_WAKEUP_TYPE]: '0',
         };
         if (this.pushType === threema.PushTokenType.Apns) {
             // APNS token format: "<hex-deviceid>;<endpoint>;<bundle-id>"

+ 0 - 7
src/threema.d.ts

@@ -488,13 +488,6 @@ declare namespace threema {
         Apns = 'a',
     }
 
-    const enum WakeupType {
-        // A full reconnect (by entering the password on the main screen).
-        FullReconnect = '0',
-        // A wakeup, as implemented by the iOS app.
-        Wakeup = '1',
-    }
-
     interface TrustedKeyStoreData {
         ownPublicKey: Uint8Array;
         ownSecretKey: Uint8Array;