[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2024-01-02 16:41:56 +01:00
الأصل a27bff7e0c
التزام 4bdb80a7f2
2 ملفات معدلة مع 2 إضافات و2 حذوفات

عرض الملف

@@ -3175,7 +3175,7 @@ function getParticipantsList(peers) {
for (const peer of Array.from(peers.keys())) {
const peer_info = peers.get(peer).peer_info;
const peer_name = peer_info.peer_name;
const peer_name_limited = peer_name.substring(0, 10) + '*****';
const peer_name_limited = peer_name.length > 15 ? peer_name.substring(0, 10) + '*****' : peer_name;
//const peer_presenter = peer_info.peer_presenter ? _PEER.presenter : _PEER.guest;
const peer_audio = peer_info.peer_audio ? _PEER.audioOn : _PEER.audioOff;
const peer_video = peer_info.peer_video ? _PEER.videoOn : _PEER.videoOff;

عرض الملف

@@ -5855,7 +5855,7 @@ class RoomClient {
const avatarImg = getParticipantAvatar(peer_name);
const generateChatAboutHTML = (imgSrc, title, status = 'online', participants = '') => {
const isSensitiveChat = !['all', 'ChatGPT'].includes(peer_id);
const isSensitiveChat = !['all', 'ChatGPT'].includes(peer_id) && title.length > 15;
const truncatedTitle = isSensitiveChat ? `${title.substring(0, 10)}*****` : title;
return `
<img class="all-participants-img"