Add comment TODO

This commit is contained in:
Nicola Benaglia 2025-06-06 08:00:21 +02:00
parent f0805e1da5
commit 16ec63eb17

View File

@ -1281,7 +1281,6 @@ export async function addUserSettings({ keyValue }) {
getData<any>(`${address}-userSettings`) getData<any>(`${address}-userSettings`)
.then((storedData) => { .then((storedData) => {
storedData = storedData || {}; // Initialize if no data found storedData = storedData || {}; // Initialize if no data found
storedData[key] = value; // Update the key-value pair within stored data storedData[key] = value; // Update the key-value pair within stored data
// Save updated structure back to localStorage // Save updated structure back to localStorage
@ -3393,7 +3392,7 @@ const checkGroupList = async () => {
.filter( .filter(
(item) => (item) =>
item?.name !== 'extension-proxy' && item?.name !== 'extension-proxy' &&
item?.address !== 'QSMMGSgysEuqDCuLw3S4cHrQkBrh3vP3VH' item?.address !== 'QSMMGSgysEuqDCuLw3S4cHrQkBrh3vP3VH' // TODO put address in a specific file
) )
.sort((a, b) => (b.timestamp || 0) - (a.timestamp || 0)); .sort((a, b) => (b.timestamp || 0) - (a.timestamp || 0));
@ -3447,6 +3446,7 @@ export const checkNewMessages = async () => {
const latestMessage = responseData.filter( const latestMessage = responseData.filter(
(pub) => pub?.name !== myName (pub) => pub?.name !== myName
)[0]; )[0];
if (!latestMessage) { if (!latestMessage) {
return; // continue to the next group return; // continue to the next group
} }