mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
ChatRoomViewController.m: crash if failing to set display name in composing message
This commit is contained in:
parent
63f5fa805e
commit
246ae7af18
1 changed files with 6 additions and 4 deletions
|
|
@ -248,8 +248,10 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
displayName = [NSString stringWithUTF8String:username ?: address];
|
||||
ms_free(address);
|
||||
}
|
||||
[addressLabel setText:displayName];
|
||||
[addressLabel setAccessibilityValue:displayName];
|
||||
if (displayName == nil)
|
||||
LOGF(@"No display name");
|
||||
addressLabel.text = displayName;
|
||||
addressLabel.accessibilityValue = displayName;
|
||||
|
||||
// Avatar
|
||||
if (image == nil) {
|
||||
|
|
@ -350,8 +352,8 @@ static void message_status(LinphoneChatMessage *msg, LinphoneChatMessageState st
|
|||
CGRect newTableFrame = [self.tableController.tableView frame];
|
||||
|
||||
if (visible) {
|
||||
[composeLabel
|
||||
setText:[NSString stringWithFormat:NSLocalizedString(@"%@ is composing...", @""), [addressLabel text]]];
|
||||
composeLabel.text =
|
||||
[NSString stringWithFormat:NSLocalizedString(@"%@ is composing...", nil), addressLabel.text];
|
||||
// pull up the composing frame and shrink the table view
|
||||
|
||||
newTableFrame.size.height -= newComposingFrame.size.height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue