CachedWindow: {
    from: number;
    to: number;
}

Bounds of a contiguous range of messages the client holds for an entity: the whole cache of the entity for MessagesSyncStore.getCachedWindow, one interval of it for MessagesSyncStore.getCachedRanges.

Both bounds are server dates of messages (Message.date), not client ones.

Type declaration

  • from: number

    Server date of the oldest cached message, 0 — the cache reaches the beginning of the entity

  • to: number

    Server date of the newest cached message, 0 — the cache reaches the present