Fix: conversation.muted also needs nullish coalescing

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-25 14:16:25 +02:00
parent 8631971821
commit 4e27c9b35a

View File

@@ -188,7 +188,7 @@ function ChatHeader({ isDark, conversation, contact, showContactInfo, setShowCon
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z" />
</svg>
</HeaderButton>
<HeaderButton isDark={isDark} active={conversation.muted}
<HeaderButton isDark={isDark} active={conversation.muted ?? false}
activeColor="red" onClick={() => muteConversation(conversation.id)}
title={conversation.muted ? 'Ton aktivieren' : 'Stummschalten'}>
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">