missed a spot where channel can be out of sync

This commit is contained in:
Sam Saffron 2013-02-25 09:31:38 +11:00
parent 14c2a4568d
commit b0b0e222f7

View file

@ -173,7 +173,7 @@ class User < ActiveRecord::Base
# tricky, we need our bus to be subscribed from the right spot # tricky, we need our bus to be subscribed from the right spot
def sync_notification_channel_position def sync_notification_channel_position
@unread_notifications_by_type = nil @unread_notifications_by_type = nil
self.notification_channel_position = MessageBus.last_id('/notification') self.notification_channel_position = MessageBus.last_id("/notification/#{id}")
end end
def invited_by def invited_by