diff --git a/public/full.js b/public/full.js index d2221e2..4cffeb6 100644 --- a/public/full.js +++ b/public/full.js @@ -37,7 +37,6 @@ const inCallElements = [ unmuteVideoSelfBtn, deafSelfBtn, undeafSelfBtn, - controlConvo, controlSliders, controlLayout, hideVMutedBtn, @@ -346,7 +345,6 @@ function restoreUI() { btnReject.classList.add('d-none') tabs.classList.remove('d-none') connectStatus.innerHTML = 'Not Connected' - liveMessageList.textContent = '' inCallElements.forEach((button) => { button.classList.add('d-none') @@ -1124,6 +1122,29 @@ async function fetchHistories() { } } +function createLiveMessageListItem(msg) { + const listItem = document.createElement('li') + listItem.classList.add('list-group-item') + listItem.id = msg.id + const formattedTimestamp = formatMessageDate(msg.ts * 1000) + listItem.innerHTML = ` +
${msg.conversation_name}
+${formattedTimestamp}
+