Simplify AppUserStore.contactsIsAllowed

This commit is contained in:
djmaze 2021-03-17 10:05:22 +01:00
parent 8157692a29
commit 676de1ed23
6 changed files with 6 additions and 12 deletions

View file

@ -4,9 +4,7 @@ import { addObservablesTo } from 'Common/Utils';
import { ThemeStore } from 'Stores/Theme';
export const AppUserStore = {
populate: () => {
AppUserStore.contactsIsAllowed(!!SettingsGet('ContactsIsAllowed'));
}
allowContacts: () => !!SettingsGet('ContactsIsAllowed')
};
addObservablesTo(AppUserStore, {
@ -16,9 +14,7 @@ addObservablesTo(AppUserStore, {
threadsAllowed: false,
composeInEdit: false,
contactsIsAllowed: false
composeInEdit: false
});
AppUserStore.focusedState.subscribe(value => {