From b0b0e222f7dac80e415b11cc70262e2f59333ec6 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Mon, 25 Feb 2013 09:31:38 +1100 Subject: [PATCH] missed a spot where channel can be out of sync --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 7173ed77cc3..4e8182522e7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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