ssb: I think this fixes missing a range in some circumstances.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 25m8s
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 25m8s
This commit is contained in:
parent
79388845ea
commit
b111d06851
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"type": "tildefriends-app",
|
"type": "tildefriends-app",
|
||||||
"emoji": "🦀",
|
"emoji": "🦀",
|
||||||
"previous": "&m5ZrkzoyAjv7AY6AukzVoWIyUFUL97uuDDWCtxCloAU=.sha256"
|
"previous": "&zAW/4XKD1wcsEM12bkzZD0V7Wyne3OPpQne2rtncxXM=.sha256"
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ class TfTabNewsFeedElement extends LitElement {
|
|||||||
let now = new Date().valueOf();
|
let now = new Date().valueOf();
|
||||||
let start_time = now - 24 * 60 * 60 * 1000;
|
let start_time = now - 24 * 60 * 60 * 1000;
|
||||||
this.start_time = start_time;
|
this.start_time = start_time;
|
||||||
this.time_range = [this.start_time, now + 24 * 60 * 60 * 1000];
|
this.time_range = [now + 24 * 60 * 60 * 1000, now + 24 * 60 * 60 * 1000];
|
||||||
messages = await this.fetch_messages(null, this.time_range[1]);
|
messages = await this.fetch_messages(null, this.time_range[1]);
|
||||||
this.update_time_range_from_messages(
|
this.update_time_range_from_messages(
|
||||||
messages.filter((x) => x.timestamp < this.time_range[1])
|
messages.filter((x) => x.timestamp < this.time_range[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user