diff --git a/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib index 5762ee1c6..fb3a8990d 100644 --- a/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIChatBubblePhotoCell.xib @@ -60,31 +60,6 @@ - - - - - - - - - - - - - - - @@ -139,12 +114,37 @@ - - - + + + + + + + + + + + + + + + + + + diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index e1553fb60..611b44f44 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -213,14 +213,11 @@ } - (void)onResendClick:(id)event { - LinphoneChatMessageState state = linphone_chat_message_get_state(self.message); if (_downloadButton.hidden == NO) { // if download button is displayed, click on it [self onDownloadClick:event]; } else if (_cancelButton.hidden == NO) { [self onCancelClick:event]; - } else if (state != LinphoneChatMessageStateNotDelivered && state != LinphoneChatMessageStateFileTransferError) { //This is cheating, onImageClick is never trigerred from the view because the resend event is never disabled for some reason. - [self onImageClick:event]; } else { [super onResend]; }