Skip to content

Commit

Permalink
Save the Managed Object Context after marking messages as read.
Browse files Browse the repository at this point in the history
IOSOSX-69 #30 #28
  • Loading branch information
pkamb committed May 14, 2015
1 parent 9b29a90 commit bff13ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ApptentiveConnect/source/Model/ATAbstractMessage.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ - (void)markAsRead {
if (self.apptentiveID && ![self.sentByUser boolValue]) {
[[NSNotificationCenter defaultCenter] postNotificationName:ATMessageCenterDidReadNotification object:self userInfo:@{ATMessageCenterMessageIDKey:self.apptentiveID}];
}

[ATData save];
}
}

Expand Down

0 comments on commit bff13ab

Please sign in to comment.