Selaa lähdekoodia

Mark inactive / invalid contacts as such

The identity state is shown in the contact detail view, after the
identity.
Danilo Bargen 5 vuotta sitten
vanhempi
commit
cb4a4be0b0
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 2 1
      src/partials/messenger.receiver/contact.html
  2. 1 1
      src/threema.d.ts

+ 2 - 1
src/partials/messenger.receiver/contact.html

@@ -10,7 +10,8 @@
 				<dt>Threema ID</dt>
 				<dd>
 					<span class="complex-values">
-						<span>{{ctrl.receiver.id}}</span>
+						<span>{{ ctrl.receiver.id }}</span>
+						<span ng-if="ctrl.receiver.state !== 'ACTIVE'">({{ ctrl.receiver.state }})</span>
 						<span class="indicator-icon" ng-if="ctrl.showBlocked()"
 							  translate-attr="{'aria-label': 'messenger.THREEMA_BLOCKED_RECEIVER'}">
 								(<span translate>messenger.THREEMA_BLOCKED_RECEIVER</span>)

+ 1 - 1
src/threema.d.ts

@@ -275,7 +275,7 @@ declare namespace threema {
         featureMask: number;
 
         // The identity state
-        state: 'ACTIVE' | 'INACTIVE';
+        state: 'ACTIVE' | 'INACTIVE' | 'INVALID';
 
         // Contact hidden?
         hidden: boolean;