|
@@ -57,6 +57,7 @@ export default [
|
|
|
} else {
|
|
|
// Search for contacts, do not show selected contacts
|
|
|
const lowercaseQuery = query.toLowerCase();
|
|
|
+ const hideInactiveContacts = !webClientService.appConfig.showInactiveIDs;
|
|
|
const result = this.allContacts
|
|
|
.filter((contactReceiver: threema.ContactReceiver) => {
|
|
|
// Ignore already selected contacts
|
|
@@ -64,6 +65,11 @@ export default [
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ // Potentially ignore inactive contacts
|
|
|
+ if (hideInactiveContacts && contactReceiver.state === 'INACTIVE') {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
// Search in display name
|
|
|
if (contactReceiver.displayName.toLowerCase().indexOf(lowercaseQuery) >= 0) {
|
|
|
return true;
|
|
@@ -87,10 +93,9 @@ export default [
|
|
|
if (contact.id === webClientService.me.id) {
|
|
|
return false;
|
|
|
}
|
|
|
-
|
|
|
- this.members = this.members.filter(function(i: string) {
|
|
|
- return i !== contact.id;
|
|
|
- });
|
|
|
+ this.members = this.members.filter(
|
|
|
+ (identity: string) => identity !== contact.id,
|
|
|
+ );
|
|
|
return true;
|
|
|
};
|
|
|
}],
|