mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 00:37:24 +08:00
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
|
preload_anonymous_data
|
||||||
|
|
||||||
if current_user
|
if current_user
|
||||||
preload_current_user_data
|
|
||||||
current_user.sync_notification_channel_position
|
current_user.sync_notification_channel_position
|
||||||
|
preload_current_user_data
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user