mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-15 11:40:29 +03:00
Added option to fav spaces (#52)
This commit is contained in:
parent
2e58757bc9
commit
cdf421f0f1
17 changed files with 269 additions and 112 deletions
|
|
@ -1,9 +1,9 @@
|
|||
import appDispatcher from '../dispatcher';
|
||||
import cons from '../state/cons';
|
||||
|
||||
function changeTab(tabId) {
|
||||
function selectTab(tabId) {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.navigation.CHANGE_TAB,
|
||||
type: cons.actions.navigation.SELECT_TAB,
|
||||
tabId,
|
||||
});
|
||||
}
|
||||
|
|
@ -78,7 +78,7 @@ function openReadReceipts(roomId, eventId) {
|
|||
}
|
||||
|
||||
export {
|
||||
changeTab,
|
||||
selectTab,
|
||||
selectSpace,
|
||||
selectRoom,
|
||||
togglePeopleDrawer,
|
||||
|
|
|
|||
|
|
@ -190,7 +190,22 @@ async function invite(roomId, userId) {
|
|||
}
|
||||
}
|
||||
|
||||
function createSpaceShortcut(roomId) {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.room.CREATE_SPACE_SHORTCUT,
|
||||
roomId,
|
||||
});
|
||||
}
|
||||
|
||||
function deleteSpaceShortcut(roomId) {
|
||||
appDispatcher.dispatch({
|
||||
type: cons.actions.room.DELETE_SPACE_SHORTCUT,
|
||||
roomId,
|
||||
});
|
||||
}
|
||||
|
||||
export {
|
||||
join, leave,
|
||||
create, invite,
|
||||
createSpaceShortcut, deleteSpaceShortcut,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue