2019-04-26 18:11:53 +00:00
|
|
|
import {
|
|
|
|
SET_FOLLOW_ME_MODERATOR,
|
|
|
|
SET_FOLLOW_ME_STATE
|
|
|
|
} from './actionTypes';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the current moderator id or clears it.
|
|
|
|
*
|
|
|
|
* @param {?string} id - The Follow Me moderator participant id.
|
|
|
|
* @returns {{
|
|
|
|
* type: SET_FOLLOW_ME_MODERATOR,
|
|
|
|
* id, string
|
|
|
|
* }}
|
|
|
|
*/
|
2022-10-27 07:33:11 +00:00
|
|
|
export function setFollowMeModerator(id?: string) {
|
2019-04-26 18:11:53 +00:00
|
|
|
return {
|
|
|
|
type: SET_FOLLOW_ME_MODERATOR,
|
|
|
|
id
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the Follow Me feature state.
|
|
|
|
*
|
|
|
|
* @param {?Object} state - The current state.
|
|
|
|
* @returns {{
|
|
|
|
* type: SET_FOLLOW_ME_STATE,
|
|
|
|
* state: Object
|
|
|
|
* }}
|
|
|
|
*/
|
2022-10-27 07:33:11 +00:00
|
|
|
export function setFollowMeState(state?: Object) {
|
2019-04-26 18:11:53 +00:00
|
|
|
return {
|
|
|
|
type: SET_FOLLOW_ME_STATE,
|
|
|
|
state
|
|
|
|
};
|
|
|
|
}
|