File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 3838 </dict >
3939 </array >
4040 <key >CFBundleVersion </key >
41- <string >2.0.10 </string >
41+ <string >2.0.11 </string >
4242 <key >LOGS_EMAIL </key >
4343 <
string >
[email protected] </
string >
4444 <key >LOGS_URL </key >
Original file line number Diff line number Diff line change @@ -381,8 +381,19 @@ -(NSArray*) contactsForContactIds:(NSArray *)contactIds {
381381#pragma mark - Whisper User Management
382382
383383-(NSArray *) getSignalUsersFromContactsArray : (NSArray *)contacts {
384- return [contacts filter: ^int (Contact* contact) {
384+ return [[ contacts filter: ^int (Contact* contact) {
385385 return [self isContactRegisteredWithRedPhone: contact] || contact.isTextSecureContact ;
386+ }]sortedArrayUsingComparator:^NSComparisonResult (id obj1, id obj2) {
387+ Contact *contact1 = (Contact*)obj1;
388+ Contact *contact2 = (Contact*)obj2;
389+
390+ BOOL firstNameOrdering = ABPersonGetSortOrdering () == kABPersonCompositeNameFormatFirstNameFirst ?YES :NO ;
391+
392+ if (firstNameOrdering) {
393+ return [contact1.firstName compare: contact2.firstName];
394+ } else {
395+ return [contact1.lastName compare: contact2.lastName];
396+ }
386397 }];
387398}
388399
Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ - (void)configureWithContact:(Contact *)contact {
3333 _associatedContact = contact;
3434
3535 _nameLabel.attributedText = [self attributedStringForContact: contact];
36+ if (!contact.isTextSecureContact ) {
37+ _nameLabel.textColor = [UIColor grayColor ];
38+ }
3639}
3740
3841- (NSAttributedString *)attributedStringForContact : (Contact *)contact {
You can’t perform that action at this time.
0 commit comments