fix crash of download images

This commit is contained in:
Danmei Chen 2019-02-18 11:42:25 +01:00
parent 695896987e
commit 82de302e46
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@
}
bctbx_list_free_with_data(head, (bctbx_list_free_func)linphone_event_log_unref);
for (FileTransferDelegate *ftd in [LinphoneManager.instance fileTransferDelegates]) {
/*for (FileTransferDelegate *ftd in [LinphoneManager.instance fileTransferDelegates]) {
const LinphoneAddress *ftd_peer =
linphone_chat_room_get_peer_address(linphone_chat_message_get_chat_room(ftd.message));
const LinphoneAddress *peer = linphone_chat_room_get_peer_address(_chatRoom);
@ -85,7 +85,7 @@
LOGI(@"Appending transient upload message %p", ftd.message);
//TODO : eventList = bctbx_list_append(eventList, linphone_chat_message_ref(ftd.event));
}
}
}*/
}
- (void)refreshData {

View file

@ -223,7 +223,7 @@ static const CGFloat CELL_IMAGE_X_MARGIN = 100;
_playButton.hidden = ![type isEqualToString:@"video"];
_fileName.hidden = _fileView.hidden = _fileButton.hidden = localFile ? NO : YES;
// Should fix cell not resizing after doanloading image.
[self layoutSubviews];
//[self layoutSubviews];
}
}
}