ssb: More reliably load private messages.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 31m2s

This commit is contained in:
2025-08-06 12:10:51 -04:00
parent 3f8daf257c
commit e88ee91f0e
2 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🦀",
"previous": "&2aXpc2RssZi3P9MUHjpjRl0wrDSS5HUIewtwOiCEDCg=.sha256"
"previous": "&3iV21tLQemlgG/Ui/WfYQyiprW/OBbFa8C3EKzPDt90=.sha256"
}

View File

@@ -384,7 +384,8 @@ class TfTabNewsFeedElement extends LitElement {
this.messages = [];
this._messages_hash = this.hash;
}
this._messages_following = this.following;
this._messages_following = JSON.stringify(this.following);
this._private_messages = JSON.stringify(this.private_messages);
let now = new Date().valueOf();
let start_time = now - 24 * 60 * 60 * 1000;
this.start_time = start_time;
@@ -427,8 +428,8 @@ class TfTabNewsFeedElement extends LitElement {
if (
!this.messages ||
this._messages_hash !== this.hash ||
JSON.stringify(this._messages_following) !==
JSON.stringify(this.following)
this._messages_following !== JSON.stringify(this.following) ||
this._private_messages !== JSON.stringify(this.private_messages)
) {
console.log(
`loading messages for ${this.whoami} (following ${this.following.length})`