fix crash enterforeground with VFS enabled

This commit is contained in:
Danmei Chen 2021-05-12 09:39:53 +02:00
parent b627c87d21
commit 600fdc1eda
2 changed files with 2 additions and 1 deletions

View file

@ -251,7 +251,7 @@ static const int BASIC_EVENT_LIST=15;
}
- (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath*)indexPath {
if ([[cell reuseIdentifier] isEqualToString:@"UIChatBubblePhotoCell"]) {
if (!_chatRoom && [[cell reuseIdentifier] isEqualToString:@"UIChatBubblePhotoCell"]) {
[(UIChatBubbleTextCell *)cell clearEncryptedFiles];
}
}

View file

@ -67,6 +67,7 @@
if (PhoneMainView.instance.currentView == ChatConversationView.compositeViewDescription) {
ChatConversationView *view = VIEW(ChatConversationView);
[view removeCallBacks];
[view.tableController setChatRoom:NULL];
} else if (PhoneMainView.instance.currentView == ChatConversationInfoView.compositeViewDescription) {
ChatConversationInfoView *view = VIEW(ChatConversationInfoView);
[view removeCallbacks];