mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-23 10:42:00 +00:00
fix(gateway): add Signal message type classification for documents
This commit is contained in:
parent
05470aa1b6
commit
8207ae888d
1 changed files with 2 additions and 0 deletions
|
|
@ -602,6 +602,8 @@ class SignalAdapter(BasePlatformAdapter):
|
|||
msg_type = MessageType.VOICE
|
||||
elif any(mt.startswith("image/") for mt in media_types):
|
||||
msg_type = MessageType.PHOTO
|
||||
elif any(mt.startswith("application/") or mt.startswith("text/") for mt in media_types):
|
||||
msg_type = MessageType.DOCUMENT
|
||||
|
||||
# Parse timestamp from envelope data (milliseconds since epoch)
|
||||
ts_ms = envelope_data.get("timestamp", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue