mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
ChatConversationCreate: add current filter if not listed
This commit is contained in:
parent
4a6a6092d6
commit
1606420a24
1 changed files with 7 additions and 1 deletions
|
|
@ -38,7 +38,12 @@
|
|||
[_contacts addObject:contact];
|
||||
}
|
||||
}
|
||||
// also add current entry, if not listed
|
||||
if (![_contacts containsObject:filter]) {
|
||||
[_contacts insertObject:filter atIndex:0];
|
||||
}
|
||||
}
|
||||
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
|
|
@ -59,7 +64,8 @@
|
|||
}
|
||||
|
||||
cell.addressLabel.text = _contacts[indexPath.row];
|
||||
const LinphoneAddress *addr = linphone_address_new(cell.addressLabel.text.UTF8String);
|
||||
const LinphoneAddress *addr =
|
||||
linphone_core_interpret_url([LinphoneManager getLc], cell.addressLabel.text.UTF8String);
|
||||
[ContactDisplay setDisplayNameLabel:cell.displayNameLabel forAddress:addr];
|
||||
|
||||
return cell;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue