only show glowing number for latest message in conversation
This commit is contained in:
parent
8de8b4eb29
commit
ee3c2ffd0d
@ -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 && (
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user