@if (drawerComponent === 'new-chat') { } @if (drawerComponent === 'profile') { } @if (chats && chats.length > 0) {
@if (profile.avatar) { } @if (!profile.avatar) {
{{ profile.name.charAt(0) }}
}
{{ profile.name }}
@if (filteredChats.length > 0) { @for ( chat of filteredChats; track trackByFn($index, chat) ) {
@if (chat.unreadCount > 0) {
} @if (chat.contact.avatar) { } @if (!chat.contact.avatar) {
{{ chat.contact.name.charAt(0) }}
}
{{ chat.contact.name }}
{{ chat.lastMessage }}
{{ chat.lastMessageAt }}
@if (chat.muted) { }
} } @else {
No chats
}
} @else {
No chats
} @if (chats && chats.length > 0) {
}