Don't mark messages as read if conversation view isn't 100% visible.

pull/1/head
Matthew Chen 8 years ago
parent 18f3bf535a
commit 78de7a10f7

@ -3798,12 +3798,13 @@ typedef enum : NSUInteger {
- (void)markVisibleMessagesAsRead - (void)markVisibleMessagesAsRead
{ {
// TODO: Make sure that we're still marking messages as read when we leave this VC.
if (self.presentedViewController) { if (self.presentedViewController) {
OWSFail(@"%@ Not marking messages as read; another view is presented.", self.logTag); DDLogInfo(@"%@ Not marking messages as read; another view is presented.", self.logTag);
return; return;
} }
if (self.navigationController.topViewController != self) { if (self.navigationController.topViewController != self) {
OWSFail(@"%@ Not marking messages as read; another view is pushed.", self.logTag); DDLogInfo(@"%@ Not marking messages as read; another view is pushed.", self.logTag);
return; return;
} }

Loading…
Cancel
Save