Fix message header assignment condition
- Changed condition in parseMessageAndSetOptions function. - Now correctly assigns chatOptions.header based on message.text.
This commit is contained in:
parent
9546cfb7ba
commit
06afafb937
@ -78,7 +78,7 @@ export async function parseMessageAndSetOptions(message: any, chatOptions: any):
|
||||
}
|
||||
|
||||
chatOptions.header = getInstructionFiles();
|
||||
if (message.text === newText2) {
|
||||
if (message.text !== newText2) {
|
||||
chatOptions.header = parsedMessage.instruction;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user