Attachment with caption fixes.

- Caption is displayed under the message
- Empty messages are not creating message bubble.
pull/1/head
Frederic Jacobs 10 years ago
parent 0195507017
commit 994c9d1c50

@ -309,9 +309,8 @@
}
if (thread && incomingMessage) {
if ([attachments count] > 0) { // Android allows attachments to be sent with body.
uint64_t textMessageTimestamp = timeStamp + 1; // We want the text to be displayed under the attachment
if ([attachments count] > 0 && body != nil && ![body isEqualToString:@""]) { // Android allows attachments to be sent with body.
uint64_t textMessageTimestamp = timeStamp+1000; // We want the text to be displayed under the attachment
if ([thread isGroupThread]) {
TSGroupThread *gThread = (TSGroupThread*)thread;

Loading…
Cancel
Save