Do not attempt to send message if network connection is missing

This commit is contained in:
Christophe Deschamps 2021-07-27 14:56:54 +02:00
parent 3dc747cf6e
commit e23f80ca51

View file

@ -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) {