policy-node.lua: fix the session items unhandling

This commit is contained in:
Ashok Sidipotu
2022-08-26 12:22:02 +05:30
committed by Julian Bouzas
parent 0983326433
commit a5a6300662
6 changed files with 50 additions and 24 deletions

View File

@@ -129,11 +129,6 @@ AsyncEventHook {
Log.info (item, "activated item for node " .. tostring (bound_id))
item:register ()
transition:advance ()
props = {}
props ["event.subject.type"] = "linkable"
EventDispatcher.push_event { type = "object-added",
priority = 50, properties = props, subject = item }
end,
},
},
@@ -169,9 +164,5 @@ SimpleEventHook {
items [id] = nil
end
props = {}
props ["event.subject.type"] = "linkable"
EventDispatcher.push_event { type = "object-removed",
priority = 50, properties = props, subject = item }
end
}:register ()