Hide communities invites and the community autocompleter when Spaces Beta is enabled

This commit is contained in:
Michael Telatynski 2021-06-22 22:07:42 +01:00
parent c316eb841a
commit 9dc8493a5c
2 changed files with 3 additions and 1 deletions

View file

@ -55,13 +55,14 @@ const PROVIDERS = [
EmojiProvider,
NotifProvider,
CommandProvider,
CommunityProvider,
DuckDuckGoProvider,
];
// as the spaces feature is device configurable only, and toggling it refreshes the page, we can do this here
if (SettingsStore.getValue("feature_spaces")) {
PROVIDERS.push(SpaceProvider);
} else {
PROVIDERS.push(CommunityProvider);
}
// Providers will get rejected if they take longer than this.