mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 11:13:41 +00:00
Even better docs
This commit is contained in:
@@ -19,12 +19,13 @@ import { asyncAction } from './actionCreators';
|
||||
const GroupActions = {};
|
||||
|
||||
/**
|
||||
* Create a GroupActions.fetchJoinedGroups action that represents an
|
||||
* asynchronous request to fetch the groups to which a user is joined.
|
||||
* Creates an action thunk that will do an asynchronous request to fetch
|
||||
* the groups to which a user is joined.
|
||||
*
|
||||
* @param {MatrixClient} matrixClient the matrix client to query.
|
||||
* @returns {function} an asynchronous action of type
|
||||
* GroupActions.fetchJoinedGroups.
|
||||
* @returns {function} an action thunk that will dispatch actions
|
||||
* indicating the status of the request.
|
||||
* @see asyncAction
|
||||
*/
|
||||
GroupActions.fetchJoinedGroups = function(matrixClient) {
|
||||
return asyncAction('GroupActions.fetchJoinedGroups', () => matrixClient.getJoinedGroups());
|
||||
|
||||
Reference in New Issue
Block a user