Fix PointGroup auto sync message problems on FE.
parent
4e677792c1
commit
961d47dbd6
|
@ -65,7 +65,16 @@ module Points
|
|||
# Cache relations *before* deleting PGIs.
|
||||
pgs = point_groups
|
||||
point_group_items.destroy_all
|
||||
pgs.map(&:manually_sync!)
|
||||
pgs.map do |x|
|
||||
# WOW, THIS IS COMPLICATED.
|
||||
# Why are you calling `SecureRandom.uuid`, Rick?
|
||||
# """
|
||||
# If you don't give the auto_sync message
|
||||
# a fresh session_id, the frontend will
|
||||
# think it is an "echo" and cancel it out.
|
||||
# """ - Rick
|
||||
x.broadcast!(SecureRandom.uuid)
|
||||
end
|
||||
end
|
||||
|
||||
def points
|
||||
|
|
|
@ -38,6 +38,9 @@ export function getMiddleware(env: EnvName) {
|
|||
const dtCompose = wow && wow({
|
||||
actionsBlacklist: [
|
||||
Actions.NETWORK_EDGE_CHANGE,
|
||||
Actions.PING_NO,
|
||||
Actions.PING_OK,
|
||||
Actions.PING_START,
|
||||
Actions.RESOURCE_READY
|
||||
]
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue