Change to 'last_message.unread'

This commit is contained in:
Chewbacca 2022-11-07 10:53:44 -05:00
parent 6538db17e7
commit 3da075dd0c

View file

@ -117,7 +117,7 @@ const ChatListItem: React.FC<IChatListItemInterface> = ({ chat, onClick }) => {
timestamp={chat.last_message.created_at}
align='right'
size='xs'
theme={chat.unread ? 'default' : 'muted'}
theme={chat.last_message.unread ? 'default' : 'muted'}
truncate
/>
</>