cinny/src/client/action/accountData.js
Ajay Bura 424245df18 Add categorized spaces in account data
Signed-off-by: Ajay Bura <ajbura@gmail.com>
2022-03-02 21:24:11 +05:30

30 lines
671 B
JavaScript

import appDispatcher from '../dispatcher';
import cons from '../state/cons';
export function createSpaceShortcut(roomId) {
appDispatcher.dispatch({
type: cons.actions.accountData.CREATE_SPACE_SHORTCUT,
roomId,
});
}
export function deleteSpaceShortcut(roomId) {
appDispatcher.dispatch({
type: cons.actions.accountData.DELETE_SPACE_SHORTCUT,
roomId,
});
}
export function categorizeSpace(roomId) {
appDispatcher.dispatch({
type: cons.actions.accountData.CATEGORIZE_SPACE,
roomId,
});
}
export function unCategorizeSpace(roomId) {
appDispatcher.dispatch({
type: cons.actions.accountData.UNCATEGORIZE_SPACE,
roomId,
});
}