Commit 5e1341d7 authored by DanmeiChen's avatar DanmeiChen

fix crash of refresh data in ChatConversationView

parent 05735603
......@@ -141,6 +141,8 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)refreshData {
[_tableController refreshData];
[refreshControl endRefreshing];
if (_tableController.totalNumberOfItems == 0)
return;
[_tableController loadData];
[_tableController.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:_tableController.currentIndex inSection:0]
atScrollPosition:UITableViewScrollPositionTop
......
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