Fix PointGroup auto sync message problems on FE.

pull/1492/head
Rick Carlino 2019-10-07 15:26:09 -05:00
parent 4e677792c1
commit 961d47dbd6
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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
]
});