From a4d2c8342ba5778877fc93b3952492c55e3fc90e Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 23 Jun 2021 10:53:59 +0200 Subject: [PATCH] fix images are gray during upload --- Classes/LinphoneUI/UIChatBubbleTextCell.m | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index 47e41ae2f..7dd82eaff 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -361,10 +361,12 @@ #pragma mark - State changed handling static void message_status(LinphoneChatMessage *msg, LinphoneChatMessageState state) { LOGI(@"State for message [%p] changed to %s", msg, linphone_chat_message_state_to_string(state)); - LinphoneEventLog *event = (LinphoneEventLog *)linphone_chat_message_cbs_get_user_data(linphone_chat_message_get_callbacks(msg)); - ChatConversationView *view = VIEW(ChatConversationView); - [view.tableController updateEventEntry:event]; - [view.tableController scrollToBottom:true]; + if (!linphone_chat_message_is_outgoing(msg) || (state != LinphoneChatMessageStateFileTransferDone && state != LinphoneChatMessageStateFileTransferInProgress)) { + LinphoneEventLog *event = (LinphoneEventLog *)linphone_chat_message_cbs_get_user_data(linphone_chat_message_get_callbacks(msg)); + ChatConversationView *view = VIEW(ChatConversationView); + [view.tableController updateEventEntry:event]; + [view.tableController scrollToBottom:true]; + } } static void participant_imdn_status(LinphoneChatMessage* msg, const LinphoneParticipantImdnState *state) {