The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(photon): promote .caf attachments to MessageType.VOICE
Florian Valadea865509e54e5
diff --git a/plugins/platforms/photon/adapter.py b/plugins/platforms/photon/adapter.pyindex adc20f45eb3..98b17a980ff 100644--- a/plugins/platforms/photon/adapter.py+++ b/plugins/platforms/photon/adapter.py@@ -677,6 +677,9 @@ class PhotonAdapter(BasePlatformAdapter):is_voice = payload.get("type") == "voice"name = payload.get("name") or ("voice" if is_voice else "(unnamed)")mime = payload.get("mimeType") or ""+ # Only .caf files are promoted to VOICE (iMessage voice notes use CAF).+ if not is_voice and name.lower().endswith(".caf"):+ is_voice = Truemtype = MessageType.VOICE if is_voice else _attachment_message_type(mime)cached = _cache_inbound_attachment(payload, name, mime, force_audio=is_voice