BUGFIX: notifications were not updated correctly live

- missing notifications when multiple replies in topic (till refresh)
- not cleared properly on click
This commit is contained in:
Sam
2014-05-23 11:34:34 +10:00
parent 1fcd72231a
commit e06da1821d
7 changed files with 30 additions and 9 deletions
+2
View File
@@ -76,6 +76,8 @@ class PostAlerter
user.notifications.where(notification_type: type,
topic_id: topic.id).destroy_all
# HACK so notification counts sync up correctly
user.reload
end
def create_notification(user, type, post, opts={})