Allow reading notifications without marking them as read.

This commit is contained in:
Vikhyat Korrapati
2014-06-17 23:34:04 +05:30
parent 92d2912ff2
commit 9b89b1466f
2 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ class NotificationsController < ApplicationController
if notifications.present?
# ordering can be off due to PMs
max_id = notifications.map(&:id).max
current_user.saw_notification_id(max_id)
current_user.saw_notification_id(max_id) unless params.has_key?(:silent)
end
current_user.reload
current_user.publish_notifications_state