only show glowing number for latest message in conversation

This commit is contained in:
bedlam343 2024-05-25 21:30:23 -07:00
parent 8de8b4eb29
commit ee3c2ffd0d
2 changed files with 5 additions and 2 deletions

View File

@ -43,7 +43,10 @@ const HistoryWidget = ({ widget }: HistoryWidgetProps) => {
{messages.reverse().map((message, index) => (
<>
<div key={message.id} className="col-span-1 flex flex-col h-full">
<MessageNumber number={numMessages - index} glow />
<MessageNumber
number={numMessages - index}
glow={index === 0}
/>
{/* line below the number */}
{numMessages - index !== 1 && (

View File

@ -81,7 +81,7 @@ const ListWidget = ({ widget }: ListWidgetProps) => {
// just pick the first element in the gaze for now
if (element.id === mouseLeftClick.elemsInGaze[0].id) {
// @ts-ignore
if (!element.messageId) {
if (!element.messageId || !element.conversationId) {
// FIX: all elements should have a message (at least the ones in the list)
// at the minimu, they should have a conversationId attached to them?
console.warn('Element does not have a message', element);