mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-28 21:21:38 +01:00
s/rooms/ranges/
This commit is contained in:
parent
9d82658caf
commit
6d09497523
@ -65,7 +65,7 @@ export enum SyncStatus {
|
|||||||
// Request types are below: See api.md for what these fields mean.
|
// Request types are below: See api.md for what these fields mean.
|
||||||
|
|
||||||
interface Sync3List {
|
interface Sync3List {
|
||||||
rooms: number[][];
|
ranges: number[][];
|
||||||
timeline_limit?: number;
|
timeline_limit?: number;
|
||||||
required_state?: string[][];
|
required_state?: string[][];
|
||||||
sort?: string[];
|
sort?: string[];
|
||||||
@ -359,7 +359,7 @@ export class Sync3 {
|
|||||||
while (this.status.get() !== SyncStatus.Stopped) {
|
while (this.status.get() !== SyncStatus.Stopped) {
|
||||||
let isFirstSync = this.status.get() === SyncStatus.InitialSync;
|
let isFirstSync = this.status.get() === SyncStatus.InitialSync;
|
||||||
const list: Sync3List = {
|
const list: Sync3List = {
|
||||||
rooms: this.ranges, // always provide the sliding window ranges
|
ranges: this.ranges, // always provide the sliding window ranges
|
||||||
};
|
};
|
||||||
if (isFirstSync) {
|
if (isFirstSync) {
|
||||||
// add in sticky params, these are set once (initially) and then can be omitted and
|
// add in sticky params, these are set once (initially) and then can be omitted and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user