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:
parent
32d8447838
commit
1d4993a185
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue