Skip to content

Commit 0f63598

Browse files
committed
Use _send_message_sync() instead
1 parent ad23361 commit 0f63598

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

shiny/ui/_chat.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -1140,16 +1140,13 @@ def update_user_input(
11401140
}
11411141
)
11421142

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-
)
1143+
msg = {
1144+
"id": self.id,
1145+
"handler": "shiny-chat-update-user-input",
1146+
"obj": obj,
1147+
}
1148+
1149+
self._session._send_message_sync({"custom": {"shinyChatMessage": msg}})
11531150

11541151
def set_user_message(self, value: str):
11551152
"""

0 commit comments

Comments
 (0)