Fix textbox text usage in methods (#7009)

This commit is contained in:
Underscore 2025-05-26 21:40:09 -04:00 committed by GitHub
parent 73bfc936a0
commit 8531100109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -708,8 +708,9 @@ def send_last_reply_to_input(history):
return '' return ''
def replace_last_reply(text, state): def replace_last_reply(textbox, state):
history = state['history'] history = state['history']
text = textbox['text']
# Initialize metadata if not present # Initialize metadata if not present
if 'metadata' not in history: if 'metadata' not in history:
@ -726,8 +727,9 @@ def replace_last_reply(text, state):
return history return history
def send_dummy_message(text, state): def send_dummy_message(textbox, state):
history = state['history'] history = state['history']
text = textbox['text']
# Initialize metadata if not present # Initialize metadata if not present
if 'metadata' not in history: if 'metadata' not in history:
@ -741,8 +743,9 @@ def send_dummy_message(text, state):
return history return history
def send_dummy_reply(text, state): def send_dummy_reply(textbox, state):
history = state['history'] history = state['history']
text = textbox['text']
# Initialize metadata if not present # Initialize metadata if not present
if 'metadata' not in history: if 'metadata' not in history: