Преглед изворни кода

Fix #3300: Adding the maxWait option for `debouncedPruneHistory`

John Livingston пре 1 година
родитељ
комит
49e7d114f0
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 1 0
      CHANGES.md
  2. 3 1
      src/headless/shared/chat/utils.js

+ 1 - 0
CHANGES.md

@@ -4,6 +4,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
+- #3300: Adding the maxWait option for `debouncedPruneHistory`
 - #3302: debounce MUC sidebar rendering
 - #3307: Fix inconsistency between browsers on textarea outlines
 - Add an occupants filter to the MUC sidebar

+ 3 - 1
src/headless/shared/chat/utils.js

@@ -119,4 +119,6 @@ export async function handleCorrection (model, attrs) {
 }
 
 
-export const debouncedPruneHistory = debounce(pruneHistory, 500);
+export const debouncedPruneHistory = debounce(pruneHistory, 500, {
+    maxWait: 2000
+});