not add text content when text is empty

This commit is contained in:
Danmei Chen 2019-03-04 15:37:59 +01:00
parent 433568ea3d
commit 46c4337bc3

View file

@ -263,7 +263,7 @@ static LinphoneBuffer *linphone_iphone_file_transfer_send(LinphoneChatMessage *m
linphone_content_set_size(content, _data.length);
_message = linphone_chat_room_create_file_transfer_message(chatRoom, content);
BOOL isOneToOneChat = linphone_chat_room_get_capabilities(chatRoom) & LinphoneChatRoomCapabilitiesOneToOne;
if (!isOneToOneChat)
if (!isOneToOneChat && ![_text isEqualToString:@""])
linphone_chat_message_add_text_content(_message, [_text UTF8String]);
linphone_content_unref(content);