Add comment reference to issue about adding hour chunk time slices (#126)
This commit is contained in:
parent
026a08a77a
commit
b3c553a863
|
@ -214,11 +214,13 @@ router.get(
|
||||||
// any messages in the gap.
|
// any messages in the gap.
|
||||||
//
|
//
|
||||||
// XXX: This date boundary logic may need to change once we introduce hour
|
// XXX: This date boundary logic may need to change once we introduce hour
|
||||||
// chunks or time slices. For example if we reached into the next day but it has
|
// chunks or time slices
|
||||||
// too many messages to show for a given page, we would want to back track until
|
// (https://github.com/matrix-org/matrix-public-archive/issues/7). For example
|
||||||
// a suitable time slice boundary. Maybe we need to add a new URL parameter here
|
// if we reached into the next day but it has too many messages to show for a
|
||||||
// `?time-slice=true` to indicate that it's okay to break it up by time slice
|
// given page, we would want to back track until a suitable time slice boundary.
|
||||||
// based on previously having to view by time slice. We wouldn't want to give
|
// Maybe we need to add a new URL parameter here `?time-slice=true` to indicate
|
||||||
|
// that it's okay to break it up by time slice based on previously having to
|
||||||
|
// view by time slice. We wouldn't want to give
|
||||||
const utcMidnightOfDayBefore = Date.UTC(
|
const utcMidnightOfDayBefore = Date.UTC(
|
||||||
dateOfLastMessage.getUTCFullYear(),
|
dateOfLastMessage.getUTCFullYear(),
|
||||||
dateOfLastMessage.getUTCMonth(),
|
dateOfLastMessage.getUTCMonth(),
|
||||||
|
|
Loading…
Reference in New Issue