We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad23361 commit 0f63598Copy full SHA for 0f63598
shiny/ui/_chat.py
@@ -1140,16 +1140,13 @@ def update_user_input(
1140
}
1141
)
1142
1143
- _utils.run_coro_sync(
1144
- self._session.send_custom_message(
1145
- "shinyChatMessage",
1146
- {
1147
- "id": self.id,
1148
- "handler": "shiny-chat-update-user-input",
1149
- "obj": obj,
1150
- },
1151
- )
1152
+ msg = {
+ "id": self.id,
+ "handler": "shiny-chat-update-user-input",
+ "obj": obj,
+ }
+
+ self._session._send_message_sync({"custom": {"shinyChatMessage": msg}})
1153
1154
def set_user_message(self, value: str):
1155
"""
0 commit comments