Skip to content

Commit

Permalink
Fix #3300: Adding the maxWait option for debouncedPruneHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnXLivingston committed Jan 16, 2024
1 parent 5975323 commit 9667e93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- #2716: Fix issue with chat display when opening via URL
- #3033: Add the `muc_grouped_by_domain` option to display MUCs on the same domain in collapsible groups
- Add an occupants filter to the MUC sidebar
- #3300: Adding the maxWait option for `debouncedPruneHistory`

### Breaking changes:

Expand Down
4 changes: 3 additions & 1 deletion src/headless/shared/chat/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,6 @@ export async function handleCorrection (model, attrs) {
}


export const debouncedPruneHistory = debounce(pruneHistory, 500);
export const debouncedPruneHistory = debounce(pruneHistory, 500, {
maxWait: 2000
});

0 comments on commit 9667e93

Please sign in to comment.