You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Doc fetchJoinedGroups
This commit is contained in:
@@ -18,6 +18,14 @@ import { asyncAction } from './actionCreators';
|
|||||||
|
|
||||||
const GroupActions = {};
|
const GroupActions = {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a GroupActions.fetchJoinedGroups action that represents an
|
||||||
|
* asyncronous request to fetch the groups to which a user is joined.
|
||||||
|
*
|
||||||
|
* @param {MatrixClient} matrixClient the matrix client to query.
|
||||||
|
* @returns {function} an asyncronous action of type
|
||||||
|
* GroupActions.fetchJoinedGroups.
|
||||||
|
*/
|
||||||
GroupActions.fetchJoinedGroups = function(matrixClient) {
|
GroupActions.fetchJoinedGroups = function(matrixClient) {
|
||||||
return asyncAction('GroupActions.fetchJoinedGroups', () => matrixClient.getJoinedGroups());
|
return asyncAction('GroupActions.fetchJoinedGroups', () => matrixClient.getJoinedGroups());
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user