mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-01 18:06:48 -04:00
Send commands opportunistically if ratchets are available
This commit is contained in:
parent
4fddc45dbc
commit
69ab910590
1 changed files with 5 additions and 1 deletions
|
@ -4146,6 +4146,10 @@ class SidebandCore():
|
||||||
|
|
||||||
if propagation:
|
if propagation:
|
||||||
desired_method = LXMF.LXMessage.PROPAGATED
|
desired_method = LXMF.LXMessage.PROPAGATED
|
||||||
|
else:
|
||||||
|
if not self.message_router.delivery_link_available(destination_hash) and RNS.Identity.current_ratchet_id(destination_hash) != None:
|
||||||
|
RNS.log(f"Have ratchet for {RNS.prettyhexrep(destination_hash)}, requesting opportunistic delivery of command", RNS.LOG_DEBUG)
|
||||||
|
desired_method = LXMF.LXMessage.OPPORTUNISTIC
|
||||||
else:
|
else:
|
||||||
desired_method = LXMF.LXMessage.DIRECT
|
desired_method = LXMF.LXMessage.DIRECT
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue