ssb: Be a bit more aggressive about loading latest messages. It bugs me when I don't see my own reactions in a channel or whatnot, and I think it has to do with the queried time ranges.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 21m2s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 21m2s
This commit is contained in:
@ -437,10 +437,11 @@ class TfElement extends LitElement {
|
||||
(await tfrpc.rpc.databaseGet('unread')) ?? '{}'
|
||||
);
|
||||
this.following = Object.keys(following);
|
||||
let about_start_time = new Date();
|
||||
users = await this.fetch_about(following, users);
|
||||
console.log(
|
||||
'about took',
|
||||
(new Date() - start_time) / 1000.0,
|
||||
(new Date() - about_start_time) / 1000.0,
|
||||
'seconds for',
|
||||
Object.keys(users).length,
|
||||
'users'
|
||||
|
@ -268,13 +268,13 @@ class TfTabNewsFeedElement extends LitElement {
|
||||
let messages = [];
|
||||
try {
|
||||
messages = await this.fetch_messages(
|
||||
this.time_range[1] - 24 * 60 * 60 * 1000,
|
||||
this.time_range[0],
|
||||
end_time
|
||||
);
|
||||
messages = await this.decrypt(messages);
|
||||
this.update_time_range_from_messages(
|
||||
messages.filter(
|
||||
(x) => x.timestamp >= this.time_range[1] && x.timestamp < end_time
|
||||
(x) => x.timestamp >= this.time_range[0] && x.timestamp < end_time
|
||||
)
|
||||
);
|
||||
} finally {
|
||||
|
Reference in New Issue
Block a user