fix: a saved chat opened in a tab beside a temporary chat cannot be rated (#34212)

With a temporary chat in the main view, a saved chat opened in a tab beside it was treated as temporary too, so its answers showed no Good Response and Bad Response buttons. The saved chat in the tab can now be rated, while a temporary chat, in the main view or in a tab, still offers none.

Fixes #34211
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-13 19:05:13 +09:00
1 parent bf0aa05a75
commit dd3a6ca1f6
1 file changed
+1 -2
@@ -27,7 +27,6 @@
config,
models,
settings,
temporaryChatEnabled,
TTSWorker,
user,
visibleControls
@@ -1353,7 +1352,7 @@
{/if}
{#if (!readOnly && (!message.user_id || message.user_id === $user?.id)) || (writeAccess && message.user_id === $user?.id)}
{#if !readOnly && !$temporaryChatEnabled && !isTemporaryChatId(chatId) && ($config?.features.enable_message_rating ?? true) && ($user?.role === 'admin' || ($user?.permissions?.chat?.rate_response ?? true))}
{#if !readOnly && !isTemporaryChatId(chatId) && ($config?.features.enable_message_rating ?? true) && ($user?.role === 'admin' || ($user?.permissions?.chat?.rate_response ?? true))}
<Tooltip content={$i18n.t('Good Response')} placement="bottom">
<button
aria-label={$i18n.t('Good Response')}