mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Update documentation for GroupStore.registerListener
This commit is contained in:
parent
56ec7713bb
commit
bd703b17e5
1 changed files with 5 additions and 4 deletions
|
@ -167,11 +167,12 @@ class GroupStore extends EventEmitter {
|
|||
* immediately triggers an update to send the current state of the
|
||||
* store (which could be the initial state).
|
||||
*
|
||||
* This also causes a fetch of all data of the specified group,
|
||||
* which might cause 4 separate HTTP requests, but only if said
|
||||
* requests aren't already ongoing.
|
||||
* If a group ID is specified, this also causes a fetch of all data
|
||||
* of the specified group, which might cause 4 separate HTTP
|
||||
* requests, but only if said requests aren't already ongoing.
|
||||
*
|
||||
* @param {string} groupId the ID of the group to fetch data for.
|
||||
* @param {string?} groupId the ID of the group to fetch data for.
|
||||
* Optional.
|
||||
* @param {function} fn the function to call when the store updates.
|
||||
* @return {Object} tok a registration "token" with a single
|
||||
* property `unregister`, a function that can
|
||||
|
|
Loading…
Reference in a new issue