diff --git a/Riot/Modules/MatrixKit/Controllers/MXKRoomViewController.m b/Riot/Modules/MatrixKit/Controllers/MXKRoomViewController.m index 382373a92..f29b59ee7 100644 --- a/Riot/Modules/MatrixKit/Controllers/MXKRoomViewController.m +++ b/Riot/Modules/MatrixKit/Controllers/MXKRoomViewController.m @@ -1031,14 +1031,16 @@ roomDataSource = nil; // Add reason label - _leftRoomReasonLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 5, self.view.frame.size.width - 20, 70)]; - _leftRoomReasonLabel.numberOfLines = 0; - _leftRoomReasonLabel.text = reason; - _leftRoomReasonLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth; + UILabel *leftRoomReasonLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 5, self.view.frame.size.width - 20, 70)]; + leftRoomReasonLabel.numberOfLines = 0; + leftRoomReasonLabel.text = reason; + leftRoomReasonLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth; _bubblesTableView.tableHeaderView = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 80)]; - [_bubblesTableView.tableHeaderView addSubview:_leftRoomReasonLabel]; + [_bubblesTableView.tableHeaderView addSubview:leftRoomReasonLabel]; [_bubblesTableView reloadData]; + _leftRoomReasonLabel = leftRoomReasonLabel; + [self updateViewControllerAppearanceOnRoomDataSourceState]; }