forked from cory/tildefriends
ssb: More account info fixes.
This commit is contained in:
parent
851d7046ea
commit
2c330802da
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&WEwYlCdGjQ76ULGr6G+6cYNaDmEgB32ml5Kv+04hTKE=.sha256"
|
"previous": "&BTakbuyvmD/t7rhYqYeRpMvqfajJaTKSccT+hAdtba8=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -167,13 +167,13 @@ class TfElement extends LitElement {
|
|||||||
if (ids.indexOf(id) == -1) {
|
if (ids.indexOf(id) == -1) {
|
||||||
delete cache.about[id];
|
delete cache.about[id];
|
||||||
} else {
|
} else {
|
||||||
users[id] = Object.assign(users[id] || {}, cache.about[id]);
|
users[id] = Object.assign(cache.about[id], users[id] || {});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let ids_out_of_date = ids.filter(
|
let ids_out_of_date = ids.filter(
|
||||||
(x) =>
|
(x) =>
|
||||||
!cache.about[x]?.seq ||
|
(users[x]?.seq && !cache.about[x]?.seq) ||
|
||||||
(users[x]?.seq && users[x]?.seq > cache.about[x].seq)
|
(users[x]?.seq && users[x]?.seq > cache.about[x].seq)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -224,7 +224,7 @@ class TfElement extends LitElement {
|
|||||||
|
|
||||||
for (let id of ids_out_of_date) {
|
for (let id of ids_out_of_date) {
|
||||||
if (!cache.about[id]?.seq) {
|
if (!cache.about[id]?.seq) {
|
||||||
cache.about[id] = {seq: users[id]?.seq ?? 0};
|
cache.about[id].seq = users[id]?.seq ?? 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user