Add btn to hide membership events from timeline

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-12 20:53:32 +05:30
parent ecb7d5ef10
commit 90c6b18cbb
5 changed files with 84 additions and 8 deletions

View file

@ -1,19 +1,26 @@
import appDispatcher from '../dispatcher';
import cons from '../state/cons';
function toggleMarkdown() {
export function toggleMarkdown() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_MARKDOWN,
});
}
function togglePeopleDrawer() {
export function togglePeopleDrawer() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_PEOPLE_DRAWER,
});
}
export {
toggleMarkdown,
togglePeopleDrawer,
};
export function toggleMembershipEvents() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_MEMBERSHIP_EVENT,
});
}
export function toggleNickAvatarEvents() {
appDispatcher.dispatch({
type: cons.actions.settings.TOGGLE_NICKAVATAR_EVENT,
});
}