Compare commits
No commits in common. "9d759e5af37a149d4c0ba53fa4016b083d5e1bc0" and "241cf62220a5ee360b1b96e0f020c19053deca32" have entirely different histories.
9d759e5af3
...
241cf62220
5
app.js
5
app.js
@ -631,7 +631,6 @@ function addFileMessage(from, fileName, fileUrl, fileType, avatar, topic) {
|
||||
const $img = document.createElement('img');
|
||||
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40';
|
||||
$img.classList.add('avatar');
|
||||
$img.draggable = false;
|
||||
$div.appendChild($img);
|
||||
|
||||
const $content = document.createElement('div');
|
||||
@ -696,7 +695,6 @@ function onMessageAdded(from, message, avatar, topic, timestamp) {
|
||||
const $img = document.createElement('img');
|
||||
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40'; // Default to a placeholder image if avatar URL is not provided
|
||||
$img.classList.add('avatar');
|
||||
$img.draggable = false;
|
||||
$div.appendChild($img);
|
||||
|
||||
const $content = document.createElement('div');
|
||||
@ -779,7 +777,6 @@ function addAudioMessage(from, audioUrl, avatar, topic) {
|
||||
const $img = document.createElement('img');
|
||||
$img.src = updatePortInUrl(avatar) || 'https://via.placeholder.com/40';
|
||||
$img.classList.add('avatar');
|
||||
$img.draggable = false;
|
||||
$div.appendChild($img);
|
||||
|
||||
const $content = document.createElement('div');
|
||||
@ -942,4 +939,4 @@ async function connectToAllRooms() {
|
||||
// Call this function when loading the rooms initially
|
||||
renderRoomList();
|
||||
|
||||
initialize();
|
||||
initialize();
|
Loading…
Reference in New Issue
Block a user