From e23f80ca512f600716073e1f11d55960a0496b59 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Tue, 27 Jul 2021 14:56:54 +0200 Subject: [PATCH] Do not attempt to send message if network connection is missing --- Classes/ChatConversationView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index 5ee487012..a052f1799 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -745,7 +745,7 @@ static UICompositeViewDescription *compositeDescription = nil; if (!linphone_core_is_network_reachable(LC)) { [PhoneMainView.instance presentViewController:[LinphoneUtils networkErrorView:@"send a message"] animated:YES completion:nil]; - //return; + return; } if ([_fileContext count] > 0) { if (linphone_chat_room_get_capabilities(_chatRoom) & LinphoneChatRoomCapabilitiesConference) {