@@ -6,7 +6,7 @@ import { ChannelListItemTimestamp } from './ChannelListItemTimestamp';
66
77import { ChannelAvatar as DefaultChannelAvatar } from '../Avatar' ;
88import { Badge } from '../Badge' ;
9- import { IconMute } from '../Icons' ;
9+ import { IconMute , IconPin } from '../Icons' ;
1010import { useComponentContext , useTranslationContext } from '../../context' ;
1111import type { ChannelListItemUIProps } from './ChannelListItem' ;
1212import { SummarizedMessagePreview } from '../SummarizedMessagePreview' ;
@@ -23,6 +23,7 @@ const UnMemoizedChannelListItemUI = (props: ChannelListItemUIProps) => {
2323 messageDeliveryStatus,
2424 muted,
2525 onSelect : customOnSelectChannel ,
26+ pinned,
2627 setActiveChannel,
2728 unread,
2829 watchers,
@@ -60,10 +61,12 @@ const UnMemoizedChannelListItemUI = (props: ChannelListItemUIProps) => {
6061 aria-selected = { active }
6162 className = { clsx (
6263 'str-chat__channel-list-item' ,
63- typeof unread === 'number' &&
64- unread > 0 &&
65- 'str-chat__channel-list-item--unread' ,
66- muted && 'str-chat__channel-list-item--muted' ,
64+ {
65+ 'str-chat__channel-list-item--muted' : muted ,
66+ 'str-chat__channel-list-item--pinned' : pinned ,
67+ 'str-chat__channel-list-item--unread' :
68+ typeof unread === 'number' && unread > 0 ,
69+ } ,
6770 customClassName ,
6871 ) }
6972 data-testid = 'channel-list-item-button'
@@ -81,6 +84,7 @@ const UnMemoizedChannelListItemUI = (props: ChannelListItemUIProps) => {
8184 < div className = 'str-chat__channel-list-item-data__first-row' >
8285 < div className = 'str-chat__channel-list-item-data__title' >
8386 < span > { displayTitle || 'N/A' } </ span >
87+ { pinned && < IconPin /> }
8488 { muted && < IconMute /> }
8589 </ div >
8690 < div className = 'str-chat__channel-list-item-data__timestamp-and-badge' >
0 commit comments