Skip to content

Commit

Permalink
Bump pagination limit to account for threaded events (#3638)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Jul 31, 2023
1 parent 0ada980 commit 21b3471
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/timeline-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ const debuglog = DEBUG ? logger.log.bind(logger) : function (): void {};

/**
* the number of times we ask the server for more events before giving up
* this is currently higher than it needs to be to workaround lack of a filter
* for excluding thread responses from main timeline pagination which can cause
* giving up incorrectly - https://github.com/matrix-org/matrix-spec-proposals/pull/3874
*
* @internal
*/
const DEFAULT_PAGINATE_LOOP_LIMIT = 5;
const DEFAULT_PAGINATE_LOOP_LIMIT = 10;

interface IOpts {
/**
Expand Down

0 comments on commit 21b3471

Please sign in to comment.