mirror of
https://github.com/markqvist/LXMF.git
synced 2025-11-20 07:22:30 -05:00
Merge messagestore check
This commit is contained in:
commit
1b5dc419b5
1 changed files with 5 additions and 4 deletions
|
|
@ -1091,9 +1091,10 @@ class LXMRouter:
|
|||
entry = self.propagation_entries[transient_id]
|
||||
filepath = entry[1]
|
||||
stamp_value = entry[6]
|
||||
components = filepath.split("_")
|
||||
filename = os.path.split(filepath)[-1]
|
||||
components = filename.split("_")
|
||||
|
||||
if len(components) >= 3 and float(components[1]) > 0 and len(os.path.split(components[0])[1]) == (RNS.Identity.HASHLENGTH//8)*2 and int(components[2]) == stamp_value:
|
||||
if len(components) == 3 and float(components[1]) > 0 and len(os.path.split(components[0])[1]) == (RNS.Identity.HASHLENGTH//8)*2 and int(components[2]) == stamp_value:
|
||||
timestamp = float(components[1])
|
||||
if now > timestamp+LXMRouter.MESSAGE_EXPIRY:
|
||||
RNS.log("Purging message "+RNS.prettyhexrep(transient_id)+" due to expiry", RNS.LOG_EXTREME)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue