Add shared.is_chat() function
This commit is contained in:
parent
b38ba230f4
commit
b0890a7925
5 changed files with 17 additions and 15 deletions
|
@ -74,7 +74,7 @@ def input_modifier(string):
|
|||
"""
|
||||
|
||||
# Remove autoplay from the last reply
|
||||
if (shared.args.chat or shared.args.cai_chat) and len(shared.history['internal']) > 0:
|
||||
if shared.is_chat() and len(shared.history['internal']) > 0:
|
||||
shared.history['visible'][-1] = [shared.history['visible'][-1][0], shared.history['visible'][-1][1].replace('controls autoplay>','controls>')]
|
||||
|
||||
shared.processing_message = "*Is recording a voice message...*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue