Skip to content

Commit ec6f489

Browse files
Wrap long comment in send_message mapper
1 parent 69d8266 commit ec6f489

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

linkedapi/mappers/send_message.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ def map_request(self, params: SendMessageParams | None = None) -> WorkflowDefini
1717
serialized = serialize_model(params)
1818
manage_conversation = serialized.pop("manageConversation", None)
1919
definition: dict[str, Any] = {"actionType": "st.sendMessage", **serialized}
20-
# The child st.manageConversation acts on the conversation this message was sent into, so it
21-
# carries only `operation` — no threadId. Core rejects a threadId on a child manageConversation.
22-
# Guard on `operation` so an empty passthrough (e.g. Make sending {"operation": ""}) is ignored.
20+
# The child st.manageConversation acts on the conversation this message was
21+
# sent into, so it carries only `operation` (no threadId — Core rejects a
22+
# threadId on a child manageConversation). Guard on `operation` so an empty
23+
# passthrough (e.g. Make sending {"operation": ""}) is ignored.
2324
if manage_conversation and manage_conversation.get("operation"):
2425
definition["then"] = {
2526
"actionType": "st.manageConversation",

0 commit comments

Comments
 (0)