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)