diff --git a/gui/src/components/chat_conversations.vue b/gui/src/components/chat_conversations.vue index 29884103..d6eec968 100644 --- a/gui/src/components/chat_conversations.vue +++ b/gui/src/components/chat_conversations.vue @@ -6,14 +6,9 @@ setActivePinia(pinia); import { useChatStore } from "../store/chatStore.js"; const chat = useChatStore(pinia); -import { - getNewMessagesByDXCallsign, - resetIsNewMessage, -} from "../js/chatHandler"; function chatSelected(callsign) { chat.selectedCallsign = callsign.toUpperCase(); - // scroll message container to bottom var messageBody = document.getElementById("message-container"); if (messageBody != null) { @@ -21,27 +16,6 @@ function chatSelected(callsign) { messageBody.scrollTop = messageBody.scrollHeight - messageBody.clientHeight; } - if (getNewMessagesByDXCallsign(callsign)[1] > 0) { - let messageArray = getNewMessagesByDXCallsign(callsign)[2]; - console.log(messageArray); - - for (const key in messageArray) { - resetIsNewMessage(messageArray[key].uuid, false); - } - } - - try { - chat.beaconLabelArray = Object.values( - chat.sorted_beacon_list[chat.selectedCallsign].timestamp, - ); - chat.beaconDataArray = Object.values( - chat.sorted_beacon_list[chat.selectedCallsign].snr, - ); - } catch (e) { - console.log("beacon data not fetched: " + e); - chat.beaconLabelArray = []; - chat.beaconDataArray = []; - } }