feat: main styling/ui/ux final changes

This commit is contained in:
Danny Avila 2023-03-22 16:06:11 -04:00
parent 67161c983f
commit 8f58c95452
17 changed files with 166 additions and 70 deletions

View file

@ -81,6 +81,7 @@ module.exports = {
}
const cache = {};
const convoMap = {};
const promises = [];
// will handle a syncing solution soon
const deletedConvoIds = [];
@ -104,6 +105,7 @@ module.exports = {
cache[page] = [];
}
cache[page].push(convo);
convoMap[convo.conversationId] = convo;
return true;
}
});
@ -120,7 +122,8 @@ module.exports = {
pageNumber,
pageSize,
// will handle a syncing solution soon
filter: new Set(deletedConvoIds)
filter: new Set(deletedConvoIds),
convoMap
};
} catch (error) {
console.log(error);