FIX: Sync user's notification channel before preloaded current user data.

This is to fix the problem where a newly created user would not
receive live updates for the first notification if the notification
is published before the client has subscribed to the channel.
This commit is contained in:
Guo Xiang Tan 2017-03-20 17:16:53 +08:00
parent 32d8447838
commit 1d4993a185
1 changed files with 1 additions and 1 deletions

View File

@ -230,8 +230,8 @@ class ApplicationController < ActionController::Base
preload_anonymous_data
if current_user
preload_current_user_data
current_user.sync_notification_channel_position
preload_current_user_data
end
end