Skip to content

Commit

Permalink
blue superchat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed Jul 26, 2023
1 parent 3944e69 commit 304ac1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 5 additions & 3 deletions src/components/PaidMessage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
$: if (!paid) {
console.error('Not a paid message', { message });
}
const darkEval = () => {
if (!('superChat' in message)) return undefined;
return isDarkColor(`#${message.superChat?.headerTextColor}`) ? Theme.LIGHT : Theme.DARK;
};
</script>

{#if paid}
Expand All @@ -52,9 +56,7 @@
</div>
{#if message.message.length > 0}
<div class="p-2">
<Message message={message} hideName forceTLColor={
isDarkColor(`#${message.superChat?.headerTextColor}`) ? Theme.LIGHT : Theme.DARK
} />
<Message message={message} hideName forceTLColor={darkEval()} />
</div>
{/if}
</div>
Expand Down
11 changes: 7 additions & 4 deletions src/components/changelog/Changelog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@
<ul class="list-disc list-inside">
<strong>On today's KFP menu:</strong>
<li class="ml-3.5">
Messages now "catch up" after scrolling
Fixed hangs caused by malformed blue superchats
</li>
<li class="ml-3.5">
New dark theme palette to match YouTube
Fixed role indicators for verified moderators
</li>
</ul>
<ul class="list-disc list-inside">
<strong>What we're still cooking:</strong>
<li class="ml-3.5">
Manifest v3 migration
Manifest v3 migration (nearing completion!)
</li>
<li class="ml-3.5">
Support for raids, polls, Q&A, etc.
Cross-extension compatibility (e.g. rikaikun, 10ten)
</li>
<li class="ml-3.5">
Improved support for raids, polls, Q&A, etc.
</li>
</ul>

0 comments on commit 304ac1e

Please sign in to comment.