fix user icons between peers
This commit is contained in:
parent
1c07819d91
commit
55d00260fa
2
app.js
2
app.js
@ -386,7 +386,7 @@ function onMessageAdded(from, message, avatar) {
|
|||||||
$div.classList.add('message');
|
$div.classList.add('message');
|
||||||
|
|
||||||
const $img = document.createElement('img');
|
const $img = document.createElement('img');
|
||||||
$img.src = avatar || 'https://via.placeholder.com/40'; // Default to a placeholder image if avatar URL is not provided
|
$img.src = updatePortInUrl(config.userAvatar) || 'https://via.placeholder.com/40'; // Default to a placeholder image if avatar URL is not provided
|
||||||
$img.classList.add('avatar');
|
$img.classList.add('avatar');
|
||||||
$div.appendChild($img);
|
$div.appendChild($img);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user