Миграции, сборка
This commit is contained in:
@@ -93,13 +93,13 @@ export default function ChatView({ onStartCall, onStartGroupCall }: { onStartCal
|
||||
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 || null
|
||||
: chat?.avatarUrl || chat?.avatar || null;
|
||||
const isOnline = chat?.type === 'personal' && otherMember?.user.isOnline;
|
||||
|
||||
const typingInChat = typingUsers.filter((t) => t.chatId === activeChat && t.userId !== user?.id);
|
||||
@@ -422,7 +422,7 @@ export default function ChatView({ onStartCall, onStartGroupCall }: { onStartCal
|
||||
);
|
||||
}
|
||||
|
||||
const initials = chatName
|
||||
const initials = (chatName || '??')
|
||||
.split(' ')
|
||||
.map((w: string) => w[0])
|
||||
.join('')
|
||||
|
||||
Reference in New Issue
Block a user