gateway: show/create the SimpleX contact link (simplex.connect_link seed)
Add a reusable corrId->Future request path to SimplexAdapter so the daemon can be queried off the event loop, expose it as GET /address on the local messaging bridge (injected address_provider; 503 unwired, 502 on daemon failure), and ship a simplex.connect_link seed that reports the bot's short and full contact link honestly, creating it on first call.
This commit is contained in:
1 parent
9057213217
commit
a9b096f2e8
12 files changed
+532
-28
No files matched your search
+5
-1
@@ -323,7 +323,11 @@ def run_gateway(
|
||||
bridge_cfg = cfg.get("bridge", {}) or {}
|
||||
bridge = None
|
||||
if bridge_cfg.get("enabled", True):
|
||||
bridge = MessagingBridge(service.outbound, config=bridge_cfg)
|
||||
bridge = MessagingBridge(
|
||||
service.outbound,
|
||||
config=bridge_cfg,
|
||||
address_provider=adapter.request_address,
|
||||
)
|
||||
service.observer = bridge.record_inbound
|
||||
port = bridge.start()
|
||||
print(
|
||||
|
||||
Reference in new issue
Block a user