mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Merge pull request #528 from DJ2LS/chat-hotfix
partially fix for chat not opening
This commit is contained in:
commit
026f78eb82
1 changed files with 18 additions and 13 deletions
|
@ -452,6 +452,7 @@ 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 +469,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) {
|
||||
|
|
Loading…
Reference in a new issue