From c73a42a511bf8041f939d0465c1cb57f409a0024 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 21 Feb 2013 14:35:07 -0800 Subject: [PATCH] Clear mock notifications when viewing mocks Summary: - When viewing a mock, clear unread flag on notifications about it. - Show the "lcick to reload" version of the popup when you get a notification about the current mock. Test Plan: Clicked a notification to clear it. Reviewers: chad Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D5055 --- .../pholio/controller/PholioMockViewController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/applications/pholio/controller/PholioMockViewController.php b/src/applications/pholio/controller/PholioMockViewController.php index 075c16610f..ccb685c051 100644 --- a/src/applications/pholio/controller/PholioMockViewController.php +++ b/src/applications/pholio/controller/PholioMockViewController.php @@ -90,11 +90,16 @@ final class PholioMockViewController extends PholioController { $add_comment, ); + PhabricatorFeedStoryNotification::updateObjectNotificationViews( + $user, + $mock->getPHID()); + return $this->buildApplicationPage( $content, array( 'title' => $title, 'device' => true, + 'pageObjects' => array($mock->getPHID()), )); }