Move space shortcut from roomlist to accountdata
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user