From 5e6cd81d5da5cf88e1d137e509e5f17e562964dd Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Thu, 25 Oct 2018 14:58:13 +0200 Subject: [PATCH] fix send picture with empty text --- Classes/ChatConversationView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index 84f659702..7949777ec 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -545,7 +545,7 @@ static UICompositeViewDescription *compositeDescription = nil; BOOL isOneToOneChat = linphone_chat_room_get_capabilities(_chatRoom) & LinphoneChatRoomCapabilitiesOneToOne; if (isOneToOneChat) { [self startImageUpload:[_imagesArray objectAtIndex:i] assetId:[_assetIdsArray objectAtIndex:i] withQuality:[_qualitySettingsArray objectAtIndex:i].floatValue]; - if ([self.messageField text]) { + if (![[self.messageField text] isEqualToString:@""]) { [self sendMessage:[_messageField text] withExterlBodyUrl:nil withInternalURL:nil]; } } else {