This commit is contained in:
user 2025-03-01 03:38:29 +03:00
parent ddbd004633
commit 952c45f4c2
1 changed files with 3 additions and 3 deletions

View File

@ -231,12 +231,12 @@ async def indexer_loop(memory, platform_found: bool, seqno: int) -> [bool, int]:
and_( and_(
KnownTelegramMessage.chat_id == user.telegram_id, KnownTelegramMessage.chat_id == user.telegram_id,
KnownTelegramMessage.type == 'hint', 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) 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: 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.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) encrypted_stored_content.owner_address = item_owner_address.to_string(1, 1, 1)