mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
timeline store requests should always be scoped to 1 fragmentId
as fragmentIds should not be sorted, they are a linked list and that is what determines their order.
This commit is contained in:
parent
bb5f139355
commit
0b637f656a
@ -19,7 +19,7 @@ class Range {
|
||||
if (this._lower && !this._upper) {
|
||||
return IDBKeyRange.bound(
|
||||
[roomId, this._lower.fragmentId, this._lower.eventIndex],
|
||||
[roomId, EventKey.maxKey.fragmentId, EventKey.maxKey.eventIndex],
|
||||
[roomId, this._lower.fragmentId, EventKey.maxKey.eventIndex],
|
||||
this._lowerOpen,
|
||||
false
|
||||
);
|
||||
@ -28,7 +28,7 @@ class Range {
|
||||
// also bound as we don't want to move into another roomId
|
||||
if (!this._lower && this._upper) {
|
||||
return IDBKeyRange.bound(
|
||||
[roomId, EventKey.minKey.fragmentId, EventKey.minKey.eventIndex],
|
||||
[roomId, this._upper.fragmentId, EventKey.minKey.eventIndex],
|
||||
[roomId, this._upper.fragmentId, this._upper.eventIndex],
|
||||
false,
|
||||
this._upperOpen
|
||||
|
Loading…
Reference in New Issue
Block a user