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
1 changed files with 1 additions and 1 deletions

View File

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