Settings: Use the phone numbers to discover Riot users

This commit is contained in:
giomfo
2017-02-17 09:41:24 +01:00
parent 1c2c0efee9
commit 0ee7a9af10
8 changed files with 263 additions and 168 deletions
@@ -546,7 +546,6 @@
else
{
// Restore default values
contactCell.accessoryView = nil;
contactCell.contentView.alpha = 1;
contactCell.userInteractionEnabled = YES;
contactCell.accessoryType = UITableViewCellAccessoryNone;
@@ -592,7 +591,11 @@
{
// Add the right accessory view if any
contactCell.accessoryType = self.contactCellAccessoryType;
contactCell.accessoryView = [[UIImageView alloc] initWithImage:self.contactCellAccessoryImage];
if (self.contactCellAccessoryImage)
{
contactCell.accessoryView = [[UIImageView alloc] initWithImage:self.contactCellAccessoryImage];
}
}
else if (indexPath.section == searchInputSection)
{
@@ -607,7 +610,10 @@
{
// Add the right accessory view if any
contactCell.accessoryType = self.contactCellAccessoryType;
contactCell.accessoryView = [[UIImageView alloc] initWithImage:self.contactCellAccessoryImage];
if (self.contactCellAccessoryImage)
{
contactCell.accessoryView = [[UIImageView alloc] initWithImage:self.contactCellAccessoryImage];
}
}
}
}