Przeglądaj źródła

Fix comment: feature level -> feature mask

Danilo Bargen 7 lat temu
rodzic
commit
accb725d8e
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6 6
      src/directives/member_list_editor.ts

+ 6 - 6
src/directives/member_list_editor.ts

@@ -33,14 +33,14 @@ export default [
             controller: [function() {
                 const AUTOCOMPLETE_MAX_RESULTS = 20;
 
-                // cache all feature level >= 1 contacts
+                // Cache all contacts with group chat support
                 this.allContacts = Array
                     .from(webClientService.contacts.values())
-                    .filter((contactReceiver: threema.ContactReceiver) => {
-                        return hasFeature(contactReceiver,
-                            threema.ContactReceiverFeature.GROUP_CHAT,
-                            $log);
-                    }) as threema.ContactReceiver[];
+                    .filter((contactReceiver: threema.ContactReceiver) => hasFeature(
+                        contactReceiver,
+                        threema.ContactReceiverFeature.GROUP_CHAT,
+                        $log,
+                    )) as threema.ContactReceiver[];
 
                 this.selectedItemChange = (contactReceiver: threema.ContactReceiver) => {
                     if (contactReceiver !== undefined) {