aboutsummaryrefslogtreecommitdiff
path: root/app/features/conference/actions.js
blob: 87afc00124c23c621dc4d4e3f4203594fbd17a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// @flow

import { CONFERENCE_JOINED, CONFERENCE_ENDED } from './actionTypes';

/**
 * Notifies that conference is joined.
 *
 * @param {Object} conference - Conference Details.
 * @returns {{
 *     type: CONFERENCE_JOINED,
 *     conference: Object
 * }}
 */
export function conferenceJoined(conference: Object) {
    return {
        type: CONFERENCE_JOINED,
        conference
    };
}

/**
 * Notifies that conference is joined.
 *
 * @param {Object} conference - Conference Details.
 * @returns {{
 *     type: CONFERENCE_ENDED,
 *     conference: Object
 * }}
 */
export function conferenceEnded(conference: Object) {
    return {
        type: CONFERENCE_ENDED,
        conference
    };
}