partially fixing #526

This commit is contained in:
DJ2LS 2023-11-03 22:08:29 +01:00
parent 7b0d909c9a
commit a1a0486507

View file

@ -452,6 +452,8 @@ export function getNewMessagesByDXCallsign(dxcallsign): [number, number, any] {
let new_counter = 0;
let total_counter = 0;
let item_array = [];
try{
if (
typeof dxcallsign !== "undefined" &&
typeof chat.sorted_chat_list[dxcallsign] !== "undefined"
@ -468,6 +470,10 @@ export function getNewMessagesByDXCallsign(dxcallsign): [number, number, any] {
}
return [total_counter, new_counter, item_array];
} catch(e){
console.log(e)
return [0, 0, item_array];
}
}
export function resetIsNewMessage(uuid, value) {