Skip to content

Commit

Permalink
fix typing indicator rotation bug. close jessesquires#712
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesquires committed Jan 10, 2015
1 parent dbad9a9 commit db40c8b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions JSQMessagesViewController/Controllers/JSQMessagesViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,16 @@ - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrie
[self.collectionView.collectionViewLayout invalidateLayoutWithContext:[JSQMessagesCollectionViewFlowLayoutInvalidationContext context]];
}

- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
if (self.showTypingIndicator) {
self.showTypingIndicator = NO;
self.showTypingIndicator = YES;
[self.collectionView reloadData];
}
}

#pragma mark - Messages view controller

- (void)didPressSendButton:(UIButton *)button
Expand Down

0 comments on commit db40c8b

Please sign in to comment.