From 04fdabc94810d63b15346d3dbc0f8f3960f60881 Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 30 Jan 2019 11:58:55 +0100 Subject: [PATCH] add device name --- Classes/LinphoneUI/UIDeviceCell.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/UIDeviceCell.m b/Classes/LinphoneUI/UIDeviceCell.m index 915b149f9..f5a687034 100644 --- a/Classes/LinphoneUI/UIDeviceCell.m +++ b/Classes/LinphoneUI/UIDeviceCell.m @@ -26,7 +26,8 @@ - (void)update { [_securityButton setImage:[FastAddressBook imageForSecurityLevel:linphone_participant_device_get_security_level(_device)] forState:UIControlStateNormal]; - _deviceLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(linphone_participant_device_get_address(_device))]; + _deviceLabel.text = [NSString stringWithUTF8String:linphone_participant_device_get_name(_device) ? : + linphone_address_as_string_uri_only(linphone_participant_device_get_address(_device))]; if (_isOneToOne) { CGRect frame =_deviceLabel.frame; frame.origin.x = 30;