From cf774e9b6d46ade2ea8130a7710d9aab679688e7 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 9 Nov 2017 15:03:38 +0100 Subject: [PATCH] display avatar in chat room info view --- Classes/ChatConversationInfoView.m | 1 + .../UIChatConversationInfoTableViewCell.h | 1 + .../UIChatConversationInfoTableViewCell.xib | 13 +++++++------ submodules/linphone | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Classes/ChatConversationInfoView.m b/Classes/ChatConversationInfoView.m index 2f39690b1..81542ab86 100644 --- a/Classes/ChatConversationInfoView.m +++ b/Classes/ChatConversationInfoView.m @@ -236,6 +236,7 @@ static UICompositeViewDescription *compositeDescription = nil; cell.uri = _contacts.allKeys[indexPath.row]; LinphoneAddress *addr = linphone_address_new(cell.uri.UTF8String); cell.nameLabel.text = [FastAddressBook displayNameForAddress:addr]; + [cell.avatarImage setImage:[FastAddressBook imageForAddress:addr] bordered:YES withRoundedRadius:YES]; cell.controllerView = self; if(![_admins containsObject:cell.uri]) { cell.adminLabel.enabled = FALSE; diff --git a/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.h b/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.h index 275ace4dd..8d5d1d24e 100644 --- a/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.h +++ b/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.h @@ -10,6 +10,7 @@ @interface UIChatConversationInfoTableViewCell : UITableViewCell +@property (weak, nonatomic) IBOutlet UIRoundedImageView *avatarImage; @property (weak, nonatomic) IBOutlet UIIconButton *removeButton; @property (weak, nonatomic) IBOutlet UIView *adminButton; @property (weak, nonatomic) IBOutlet UILabel *adminLabel; diff --git a/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.xib b/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.xib index acf1ca654..25e079f18 100644 --- a/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.xib +++ b/Classes/LinphoneUI/UIChatConversationInfoTableViewCell.xib @@ -19,18 +19,14 @@ - - - - - + @@ -68,12 +64,17 @@ + + + + + diff --git a/submodules/linphone b/submodules/linphone index 5c857c2db..43f0d8636 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 5c857c2db1d466824f7d1357fdf3177691703fdd +Subproject commit 43f0d863693911f6c73b614077ddd16504013d8f