forked from mirrors/linphone-iphone
fix crash: ChatsListTableView is load before app entering foreground
This commit is contained in:
parent
e06da76068
commit
dd57e366eb
1 changed files with 3 additions and 0 deletions
|
|
@ -150,6 +150,9 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo
|
|||
if (cell == nil)
|
||||
cell = [[UIChatCell alloc] initWithIdentifier:kCellId];
|
||||
|
||||
if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground) {
|
||||
return cell;
|
||||
}
|
||||
|
||||
[cell setChatRoom:(LinphoneChatRoom *)bctbx_list_nth_data(_data, (int)[indexPath row])];
|
||||
[super accessoryForCell:cell atPath:indexPath];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue