From 273461040c12f0a340e2ddb2ea4e31668e7c4b9f Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 23 Sep 2015 10:51:32 +0930 Subject: [PATCH] Update local copy of notification when marking as read --- src/Core/Notifications/Commands/ReadNotificationHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Core/Notifications/Commands/ReadNotificationHandler.php b/src/Core/Notifications/Commands/ReadNotificationHandler.php index 1a84131aa..fe2ac8698 100644 --- a/src/Core/Notifications/Commands/ReadNotificationHandler.php +++ b/src/Core/Notifications/Commands/ReadNotificationHandler.php @@ -38,6 +38,8 @@ class ReadNotificationHandler ]) ->update(['is_read' => true]); + $notification->is_read = true; + return $notification; } }