diff --git a/Classes/Base.lproj/ContactsListView.xib b/Classes/Base.lproj/ContactsListView.xib index eb78d57be..5efbd62a1 100644 --- a/Classes/Base.lproj/ContactsListView.xib +++ b/Classes/Base.lproj/ContactsListView.xib @@ -66,8 +66,6 @@ - - @@ -82,7 +80,7 @@ - + @@ -94,7 +92,6 @@ - diff --git a/Classes/Base.lproj/HistoryListView.xib b/Classes/Base.lproj/HistoryListView.xib index 912319557..bfe1bc1c2 100644 --- a/Classes/Base.lproj/HistoryListView.xib +++ b/Classes/Base.lproj/HistoryListView.xib @@ -57,7 +57,6 @@ - @@ -69,7 +68,7 @@ - + @@ -81,7 +80,6 @@ - diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index 5a85e1f3e..aa2092aa2 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -193,15 +193,6 @@ static UICompositeViewDescription *compositeDescription = nil; _addressLabel.accessibilityValue = _addressLabel.text; } -static void message_status(LinphoneChatMessage *msg, LinphoneChatMessageState state, void *ud) { - const char *text = (linphone_chat_message_get_file_transfer_information(msg) != NULL) - ? "photo transfer" - : linphone_chat_message_get_text(msg); - LOGI(@"Delivery status for [%s] is [%s]", text, linphone_chat_message_state_to_string(state)); - ChatConversationView *thiz = (__bridge ChatConversationView *)ud; - [thiz.tableController updateChatEntry:msg]; -} - - (BOOL)sendMessage:(NSString *)message withExterlBodyUrl:(NSURL *)externalUrl withInternalURL:(NSURL *)internalUrl { if (chatRoom == NULL) { LOGW(@"Cannot send message: No chatroom"); @@ -218,7 +209,7 @@ static void message_status(LinphoneChatMessage *msg, LinphoneChatMessageState st [LinphoneManager setValueInMessageAppData:[internalUrl absoluteString] forKey:@"localimage" inMessage:msg]; } - linphone_chat_room_send_message2(chatRoom, msg, message_status, (__bridge void *)(self)); + linphone_chat_room_send_chat_message(chatRoom, msg); [_tableController addChatEntry:msg]; [_tableController scrollToBottom:true]; diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.m b/Classes/LinphoneUI/UIChatBubblePhotoCell.m index 512f150f1..09057cc84 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.m +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.m @@ -61,6 +61,8 @@ _messageImageView.image = nil; _fileTransferProgress.progress = 0; + [super setChatMessage:amessage]; + if (amessage) { const LinphoneContent *c = linphone_chat_message_get_file_transfer_information(amessage); if (c) { @@ -76,7 +78,7 @@ } } } - [super setChatMessage:amessage]; + [self update]; } - (void)update { @@ -186,6 +188,7 @@ - (void)connectToFileDelegate:(FileTransferDelegate *)aftd { ftd = aftd; + // assert(ftd.message == self.message); _fileTransferProgress.progress = 0; [[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] addObserver:self diff --git a/Classes/LinphoneUI/UIChatBubblePhotoCell.xib b/Classes/LinphoneUI/UIChatBubblePhotoCell.xib index 4d7b25dfa..5e8fb0646 100644 --- a/Classes/LinphoneUI/UIChatBubblePhotoCell.xib +++ b/Classes/LinphoneUI/UIChatBubblePhotoCell.xib @@ -1,5 +1,5 @@ - + @@ -32,10 +32,12 @@ + + @@ -44,6 +46,7 @@