Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisreimann committed Apr 26, 2013
1 parent 6c432ee commit dba47b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Classes/IOCNotificationsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSIn

// marks the notification as read, but keeps the cell
- (void)markAsRead:(NSIndexPath *)indexPath {
NSInteger section = indexPath.section;
GHNotification *notification = [self notificationsInSection:section][indexPath.row];
[self.notifications markAsRead:notification start:nil success:nil failure:nil];
NSArray *notifications = [self notificationsInSection:indexPath.section];
if (indexPath.row >= notifications.count) return;
GHNotification *notification = notifications[indexPath.row];
[self.notifications markAsRead:notification start:nil success:nil failure:nil];
}

// marks the notification as read and removes the cell
Expand Down

0 comments on commit dba47b5

Please sign in to comment.