mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
add name to chats
This commit is contained in:
parent
ccd2344443
commit
17e3cd82f6
@ -56,6 +56,13 @@ export const FriendsMessengerThreadGroup: FC<FriendsMessengerThreadGroupProps> =
|
|||||||
}
|
}
|
||||||
</NitroLayoutBase>
|
</NitroLayoutBase>
|
||||||
<NitroLayoutBase className={ 'bg-light text-black border-radius mb-2 rounded py-1 px-2 messages-group-' + (isOwnChat ? 'right' : 'left') }>
|
<NitroLayoutBase className={ 'bg-light text-black border-radius mb-2 rounded py-1 px-2 messages-group-' + (isOwnChat ? 'right' : 'left') }>
|
||||||
|
<NitroLayoutBase className='fw-bold'>
|
||||||
|
{
|
||||||
|
(isOwnChat) && GetSessionDataManager().userName
|
||||||
|
}
|
||||||
|
{ (!isOwnChat) && ((group.type === GroupType.GROUP_CHAT) ? getGroupChatData(group.chats[0].extraData).username : thread.participant.name)
|
||||||
|
}
|
||||||
|
</NitroLayoutBase>
|
||||||
{ group.chats.map((chat, index) =><NitroLayoutBase key={ index } className="text-break">{ chat.message }</NitroLayoutBase>) }
|
{ group.chats.map((chat, index) =><NitroLayoutBase key={ index } className="text-break">{ chat.message }</NitroLayoutBase>) }
|
||||||
</NitroLayoutBase>
|
</NitroLayoutBase>
|
||||||
{ (isOwnChat) &&
|
{ (isOwnChat) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user