From c9b5f9dd8adf5bcaeb11517aa26a35e0715295cf Mon Sep 17 00:00:00 2001 From: Joao Santos Date: Fri, 12 Apr 2024 00:53:53 +0000 Subject: [PATCH] fix double dial --- public/full.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/full.js b/public/full.js index 7bae521..5fb5e0b 100644 --- a/public/full.js +++ b/public/full.js @@ -1604,26 +1604,26 @@ async function openMessageModal(data) { if (data.channels.audio) { const audioBtn = contactBtnDiv.querySelector('.btn-dial-audio') audioBtn.classList.remove('d-none') - audioBtn.addEventListener('click', () => { + audioBtn.onclick = () => { dialAddress(data.channels.audio) modal.hide() - }) + } } if (data.channels.video) { const videoBtn = contactBtnDiv.querySelector('.btn-dial-video') videoBtn.classList.remove('d-none') - videoBtn.addEventListener('click', () => { + videoBtn.onclick = () => { dialAddress(data.channels.video) modal.hide() - }) + } } if (data.channels.messaging) { const messagingBtn = contactBtnDiv.querySelector('.btn-dial-messaging') messagingBtn.classList.remove('d-none') - messagingBtn.addEventListener('click', () => { + messagingBtn.onclick = () => { dialAddress(data.channels.messaging) modal.hide() - }) + } } }