Commit 600fdc1e authored by DanmeiChen's avatar DanmeiChen
Browse files

fix crash enterforeground with VFS enabled

parent b627c87d
......@@ -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];
}
}
......
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment