mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
[Contacts] fix sip filtered list in contactListView
This commit is contained in:
parent
03034bc316
commit
4bdf3f78f5
2 changed files with 4 additions and 3 deletions
|
|
@ -119,9 +119,9 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
|
|||
|
||||
// Sort contacts by first letter. We need to translate the name to ASCII first, because of UTF-8
|
||||
// issues. For instance expected order would be: Alberta(A tilde) before ASylvano.
|
||||
/* NSData *name2ASCIIdata = [name dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
|
||||
NSData *name2ASCIIdata = [name dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES];
|
||||
NSString *name2ASCII = [[NSString alloc] initWithData:name2ASCIIdata encoding:NSASCIIStringEncoding];
|
||||
*/ return name;
|
||||
return name2ASCII;
|
||||
}
|
||||
}
|
||||
return nil;
|
||||
|
|
@ -133,7 +133,7 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
|
|||
NSString* previous = [PhoneMainView.instance getPreviousViewName];
|
||||
addressBookMap = [LinphoneManager.instance getLinphoneManagerAddressBookMap];
|
||||
BOOL updated = [LinphoneManager.instance getContactsUpdated];
|
||||
if(([previous isEqualToString:@"ContactsDetailsView"] && updated)|| [addressBookMap count] == 0){
|
||||
if(([previous isEqualToString:@"ContactsDetailsView"] && updated) || updated || [addressBookMap count] == 0){
|
||||
[LinphoneManager.instance setContactsUpdated:FALSE];
|
||||
@synchronized(addressBookMap) {
|
||||
//Set all contacts from ContactCell to nil
|
||||
|
|
|
|||
|
|
@ -165,6 +165,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
linphoneButton.selected = FALSE;
|
||||
[tableController loadData];
|
||||
} else if (view == ContactsLinphone && !linphoneButton.selected) {
|
||||
[LinphoneManager.instance setContactsUpdated:TRUE];
|
||||
frame.origin.x = linphoneButton.frame.origin.x;
|
||||
[ContactSelection setSipFilter:LinphoneManager.instance.contactFilter];
|
||||
[ContactSelection enableEmailFilter:FALSE];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue