Open b1conrad opened 2 years ago
While you're at it, future self, please write code so that the "make connection" buttons work!
The following events raised by the io.picolabs.aca
ruleset may be of use:
aca:new_connection
aca:deleted_connection
aca:connections_changed
Hm. The first two contain full information, but it is not actionable until the last one is raised.
I wonder if
select when aca new_connection
label re#(.+)# my_did re#(.+)# their_vk re#(.+)# their_did re#(.+)# their_endpoint re#(.+)#
setting(label,my_did,their_vk,their_did,their_endpoint)
then aca connections_changed
and
select when aca deleted_connection
their_vk re#(.+)#
setting(their_vk)
then aca connections_changed
would keep the attributes of the first event around long enough for them to be of use when the second event arrives?
A documentation page implies that it ought to... (as does this one)
In any case, we should have a way to synchronize the two rulesets. But, they are installed in the same pico and we can't query from one ruleset to another in the same pico.
Its main page should show connections already made in both categories. To do this, it'll have to stay in sync with
io.picolabs.aca
and its list of connections.