mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Shorten long messages in chat view, so that they stay readable.
This commit is contained in:
parent
3eec08773c
commit
b189297839
1 changed files with 6 additions and 1 deletions
|
|
@ -116,7 +116,12 @@
|
|||
if([chat isExternalImage] || [chat isInternalImage]) {
|
||||
[chatContentLabel setText:@""];
|
||||
} else {
|
||||
[chatContentLabel setText:[chat message]];
|
||||
NSString *message = [chat message];
|
||||
// shorten long messages
|
||||
if([message length] > 50)
|
||||
message = [[message substringToIndex:50] stringByAppendingString:@"[...]"];
|
||||
|
||||
[chatContentLabel setText:message];
|
||||
}
|
||||
|
||||
int count = [ChatModel unreadMessages:[chat remoteContact]];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue