mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
not add text content when text is empty
This commit is contained in:
parent
433568ea3d
commit
46c4337bc3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue