Move space shortcut from roomlist to accountdata

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-02-27 17:02:03 +05:30
parent 7db674b65d
commit a62df536dd
10 changed files with 131 additions and 77 deletions

View file

@ -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,
});
}