Убрал аватары и имена внутри чата личных чатов

This commit is contained in:
Халимов Рустам
2026-04-16 23:54:19 +03:00
parent 86ae06beb6
commit 7225e3272e

View File

@@ -455,7 +455,7 @@ function MessageBubble({
</div>
)}
{!isMine && (
{!isMine && activeChat?.type !== 'personal' && activeChat?.type !== 'favorites' && (
<div className="w-8 flex-shrink-0 mr-2 self-end">
{showAvatar ? (
<button onClick={() => onViewProfile?.(message.senderId)}>
@@ -472,7 +472,7 @@ function MessageBubble({
)}
<div className={`max-[500px]:max-w-[85%] max-w-[75%] lg:max-w-[65%] min-w-0 ${isMine ? 'items-end' : 'items-start'} flex flex-col`}>
{!isMine && showAvatar && (
{!isMine && showAvatar && activeChat?.type !== 'personal' && activeChat?.type !== 'favorites' && (
<button
className="text-xs font-medium text-knot-400 ml-3 mb-0.5 hover:underline"
onClick={() => onViewProfile?.(message.senderId)}
@@ -1088,7 +1088,7 @@ function MessageBubble({
)}
</div>
{isMine && (
{isMine && activeChat?.type !== 'personal' && activeChat?.type !== 'favorites' && (
<div className="w-8 flex-shrink-0 ml-2 self-end">
{showAvatar ? (
<button onClick={() => onViewProfile?.(message.senderId)}>