Add missing key normalization

This commit is contained in:
Jack Kingsman
2026-01-30 21:12:32 -08:00
parent 1ea809c4e3
commit c048c435c9

View File

@@ -75,7 +75,7 @@ async def on_contact_message(event: "Event") -> None:
# (get_by_key_or_prefix does exact match first, then prefix fallback)
contact = await ContactRepository.get_by_key_or_prefix(sender_pubkey)
if contact:
sender_pubkey = contact.public_key
sender_pubkey = contact.public_key.lower()
# Skip messages from repeaters - they only send CLI responses, not chat messages.
# CLI responses are handled by the command endpoint and txt_type filter above.