Преглед на файлове

Prepare support for 'hidden' flag

Danilo Bargen преди 7 години
родител
ревизия
aa31bbebf6
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 1 0
      src/services/webclient.ts
  2. 5 2
      src/threema.d.ts

+ 1 - 0
src/services/webclient.ts

@@ -2394,6 +2394,7 @@ export class WebClientService {
             featureMask: 0xFF,
             verificationLevel: 3,
             state: 'ACTIVE',
+            hidden: false,
             access: {
                 canChangeAvatar: true,
                 canChangeFirstName: true,

+ 5 - 2
src/threema.d.ts

@@ -207,10 +207,10 @@ declare namespace threema {
         // Permissions towards this receiver
         access: ReceiverAccess;
 
-        // Whether the chat with this receiver is locked.
+        // Whether the chat with this receiver is locked. Used for private chats.
         locked?: boolean;
 
-        // Whether the chat with this receiver is visible.
+        // Whether the chat with this receiver is visible. Used for private chats.
         visible?: boolean;
     }
 
@@ -239,6 +239,9 @@ declare namespace threema {
         // The identity state
         state: 'ACTIVE' | 'INACTIVE';
 
+        // Contact hidden?
+        hidden: boolean;
+
         // The Threema public key
         publicKey: ArrayBuffer;