Фронт
This commit is contained in:
@@ -35,14 +35,14 @@ function ChatListItem({ chat, isActive }: ChatListItemProps) {
|
||||
const chatName = isFavorites
|
||||
? t('favorites')
|
||||
: chat.type === 'personal'
|
||||
? otherMember?.user.displayName || otherMember?.user.username || t('chat')
|
||||
? otherMember?.user.displayName || otherMember?.user.userName || otherMember?.user.username || t('chat')
|
||||
: chat.name || t('group');
|
||||
|
||||
const chatAvatar = isFavorites
|
||||
? null
|
||||
: chat.type === 'personal'
|
||||
? otherMember?.user.avatar
|
||||
: chat.avatar;
|
||||
? otherMember?.user.avatarUrl || otherMember?.user.avatar
|
||||
: chat.avatarUrl || chat.avatar;
|
||||
|
||||
const isOnline = chat.type === 'personal' && otherMember?.user.isOnline;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user