do not display imdn status on empty chat room

This commit is contained in:
Benjamin Reis 2018-08-03 14:17:38 +02:00
parent f65f0af7c0
commit c930695eed

View file

@ -37,6 +37,7 @@
[self setFrame:CGRectMake(0, 0, sub.frame.size.width, sub.frame.size.height)];
[self addSubview:sub];
}
[_imdmIcon setHidden:TRUE];
return self;
}
@ -95,8 +96,7 @@
text = [[text substringToIndex:50] stringByAppendingString:@"[...]"];
_chatContentLabel.attributedText = nil;
_chatContentLabel.text = text;
}
else {
} else {
NSString *name = [FastAddressBook displayNameForAddress:linphone_chat_message_get_from_address(last_msg)];
if ([name length] > 25) {
name = [[name substringToIndex:25] stringByAppendingString:@"[...]"];