Skip to content

Commit 7ee0270

Browse files
committed
Use _send_message_sync() instead
1 parent 833112a commit 7ee0270

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

shiny/ui/_chat.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,16 +1107,13 @@ def update_user_input(
11071107
}
11081108
)
11091109

1110-
_utils.run_coro_hybrid(
1111-
self._session.send_custom_message(
1112-
"shinyChatMessage",
1113-
{
1114-
"id": self.id,
1115-
"handler": "shiny-chat-update-user-input",
1116-
"obj": obj,
1117-
},
1118-
)
1119-
)
1110+
msg = {
1111+
"id": self.id,
1112+
"handler": "shiny-chat-update-user-input",
1113+
"obj": obj,
1114+
}
1115+
1116+
self._session._send_message_sync({"custom": {"shinyChatMessage": msg}})
11201117

11211118
def set_user_message(self, value: str):
11221119
"""

0 commit comments

Comments
 (0)