fixed message parsing after api change

This commit is contained in:
DJ2LS 2024-02-03 14:04:05 +01:00
parent 08c2b7809a
commit 4a6e87efd7

View file

@ -23,9 +23,8 @@ interface Message {
export async function processFreedataMessages(data){
if(typeof(data) != "undefined"){
let jsondata = await JSON.parse(data);
chatStore.callsign_list = createCallsignListFromAPI(jsondata)
chatStore.sorted_chat_list = createSortedMessagesList(jsondata)
chatStore.callsign_list = createCallsignListFromAPI(data)
chatStore.sorted_chat_list = createSortedMessagesList(data)
}
}