more progress towards live unread and new counts, unread message implemented, still to implement delete messages

This commit is contained in:
Sam
2013-05-29 18:11:04 +10:00
parent f2da06a78f
commit e93b7a3b20
19 changed files with 325 additions and 87 deletions

View File

@ -107,6 +107,9 @@ class ApplicationController < ActionController::Base
if current_user.present?
store_preloaded("currentUser", MultiJson.dump(CurrentUserSerializer.new(current_user, root: false)))
serializer = ActiveModel::ArraySerializer.new(TopicTrackingState.report([current_user.id]), each_serializer: TopicTrackingStateSerializer)
store_preloaded("topicTrackingStates", MultiJson.dump(serializer))
end
store_preloaded("siteSettings", SiteSetting.client_settings_json)
end