Don't try to update reasoning for impersonation stream

d6bf3439b479aa4cbd66c3af9dbec4cdf862b8db

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -0Ignore whitespace
public/scripts/reasoning.js+4 -0
@@ -236,6 +236,10 @@ export class ReasoningHandler {
236 * @returns {boolean} - Returns true if the reasoning was changed, otherwise false236 * @returns {boolean} - Returns true if the reasoning was changed, otherwise false
237 */237 */
238 updateReasoning(messageId, reasoning = null, { persist = false } = {}) {238 updateReasoning(messageId, reasoning = null, { persist = false } = {}) {
239 if (messageId == -1 || !chat[messageId]) {
240 return false;
241 }
242
239 reasoning = reasoning ?? this.reasoning;243 reasoning = reasoning ?? this.reasoning;
240 reasoning = power_user.trim_spaces ? reasoning.trim() : reasoning;244 reasoning = power_user.trim_spaces ? reasoning.trim() : reasoning;
241245