Record manifest ID and timestamp

This commit is contained in:
thePR0M3TH3AN
2025-07-13 21:32:11 -04:00
parent 8ee97b4a05
commit 57997e4958
6 changed files with 52 additions and 32 deletions

View File

@@ -318,15 +318,12 @@ def handle_retrieve_from_nostr(password_manager: PasswordManager):
manifest, chunks = result
encrypted = gzip.decompress(b"".join(chunks))
if manifest.delta_since:
try:
version = int(manifest.delta_since)
deltas = asyncio.run(
password_manager.nostr_client.fetch_deltas_since(version)
)
if deltas:
encrypted = deltas[-1]
except ValueError:
pass
version = int(manifest.delta_since)
deltas = asyncio.run(
password_manager.nostr_client.fetch_deltas_since(version)
)
if deltas:
encrypted = deltas[-1]
password_manager.encryption_manager.decrypt_and_save_index_from_nostr(
encrypted
)