Skip to content

A platform for community discussion. Free, open, simple.

DEV: update options.state jsdoc (#37443)

Joffrey JAFFEUX3734a986e08a
diff --git a/plugins/chat/assets/javascripts/discourse/lib/chat-pane-state.js b/plugins/chat/assets/javascripts/discourse/lib/chat-pane-state.js
index acdea9dd50a..1a9690c0563 100644
--- a/plugins/chat/assets/javascripts/discourse/lib/chat-pane-state.js
+++ b/plugins/chat/assets/javascripts/discourse/lib/chat-pane-state.js
@@ -167,9 +167,10 @@ export default class ChatPaneState {
* Use this in scroll handlers that already have distanceToBottom computed.
*
* @param {object} options
+ * @param {HTMLElement | null} options.scroller
* @param {boolean} options.fetchedOnce
* @param {boolean} options.canLoadMoreFuture
- * @param {object} options.state - Scroll state with scroller and distanceToBottom
+ * @param {object} options.state - Scroll state with distanceToBottom
* @param {number} [options.distanceThresholdPixels]
*/
updatePendingContentFromScrollState(options) {