From 952c45f4c2e7e22c4d38745fd64d79e27d43f632 Mon Sep 17 00:00:00 2001 From: user Date: Sat, 1 Mar 2025 03:38:29 +0300 Subject: [PATCH] fixes --- app/core/background/indexer_service.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/core/background/indexer_service.py b/app/core/background/indexer_service.py index fc0a9fa..7dd0178 100644 --- a/app/core/background/indexer_service.py +++ b/app/core/background/indexer_service.py @@ -231,12 +231,12 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]: and_( KnownTelegramMessage.chat_id == user.telegram_id, KnownTelegramMessage.type == 'hint', - KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash}) + KnownTelegramMessage.meta.contains({'encrypted_content_hash': encrypted_stored_content.hash}), + KnownTelegramMessage.deleted == False ) - ): + ).all(): await user_uploader_wrapper.delete_message(hint_message.message_id) - user.client elif encrypted_stored_content.type.startswith('onchain') and encrypted_stored_content.onchain_index == item_index: encrypted_stored_content.type = "onchain/content" + ("_unknown" if (encrypted_stored_content.key_id is None) else "") encrypted_stored_content.owner_address = item_owner_address.to_string(1, 1, 1)