From 29f60899679b751adafaffb95be73825a6bb1971 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 12 Oct 2021 21:11:20 +0200 Subject: [PATCH] Updated sync sequence status codes --- LXMF/LXMF.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LXMF/LXMF.py b/LXMF/LXMF.py index a7bb8a6..f199d01 100644 --- a/LXMF/LXMF.py +++ b/LXMF/LXMF.py @@ -814,8 +814,9 @@ class LXMRouter: PR_LINK_ESTABLISHING = 0x02 PR_LINK_ESTABLISHED = 0x03 PR_REQUEST_SENT = 0x04 - PR_RESPONSE_RECEIVED = 0x05 - PR_COMPLETE = 0x06 + PR_RECEIVING = 0x05 + PR_RESPONSE_RECEIVED = 0x06 + PR_COMPLETE = 0x07 PR_ALL_MESSAGES = 0x00 @@ -973,6 +974,7 @@ class LXMRouter: response_callback=self.message_list_response, failed_callback=self.message_get_failed ) + self.propagation_transfer_state = LXMRouter.PR_REQUEST_SENT else: if self.outbound_propagation_link == None: if RNS.Transport.has_path(self.outbound_propagation_node): @@ -1057,6 +1059,7 @@ class LXMRouter: self.propagation_transfer_last_result = 0 def message_get_progress(self, request_receipt): + self.propagation_transfer_state = LXMRouter.PR_RECEIVING self.propagation_transfer_progress = request_receipt.get_progress() def message_get_response(self, request_receipt):