Enable stories in beta builds
This commit is contained in:
parent
4ec48df5b9
commit
d114effc03
3 changed files with 12 additions and 1 deletions
|
@ -30,11 +30,13 @@ export type ConfigKeyType =
|
||||||
| 'desktop.showUserBadges.beta'
|
| 'desktop.showUserBadges.beta'
|
||||||
| 'desktop.showUserBadges2'
|
| 'desktop.showUserBadges2'
|
||||||
| 'desktop.stories'
|
| 'desktop.stories'
|
||||||
|
| 'desktop.stories.beta'
|
||||||
| 'desktop.usernames'
|
| 'desktop.usernames'
|
||||||
| 'global.attachments.maxBytes'
|
| 'global.attachments.maxBytes'
|
||||||
| 'global.calling.maxGroupCallRingSize'
|
| 'global.calling.maxGroupCallRingSize'
|
||||||
| 'global.groupsv2.groupSizeHardLimit'
|
| 'global.groupsv2.groupSizeHardLimit'
|
||||||
| 'global.groupsv2.maxGroupSize';
|
| 'global.groupsv2.maxGroupSize';
|
||||||
|
|
||||||
type ConfigValueType = {
|
type ConfigValueType = {
|
||||||
name: ConfigKeyType;
|
name: ConfigKeyType;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
|
|
|
@ -34,6 +34,10 @@ const releaseNotes: ReleaseNotesType = {
|
||||||
key: 'WhatsNew__v5.63--0',
|
key: 'WhatsNew__v5.63--0',
|
||||||
components: undefined,
|
components: undefined,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'WhatsNew__v5.63--beta.2',
|
||||||
|
components: undefined,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ import type { SendStatus } from '../messages/MessageSendState';
|
||||||
import type { StoryDistributionListDataType } from '../state/ducks/storyDistributionLists';
|
import type { StoryDistributionListDataType } from '../state/ducks/storyDistributionLists';
|
||||||
import type { UUIDStringType } from './UUID';
|
import type { UUIDStringType } from './UUID';
|
||||||
import { isEnabled } from '../RemoteConfig';
|
import { isEnabled } from '../RemoteConfig';
|
||||||
|
import { isBeta } from '../util/version';
|
||||||
|
|
||||||
export type ReplyType = {
|
export type ReplyType = {
|
||||||
author: Pick<
|
author: Pick<
|
||||||
|
@ -145,7 +146,11 @@ export enum HasStories {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getStoriesAvailable = () =>
|
const getStoriesAvailable = () =>
|
||||||
isEnabled('desktop.stories') || isEnabled('desktop.internalUser');
|
isEnabled('desktop.stories') ||
|
||||||
|
isEnabled('desktop.internalUser') ||
|
||||||
|
(isEnabled('desktop.stories.beta') && isBeta(window.getVersion()));
|
||||||
|
|
||||||
const getStoriesDisabled = () => window.Events.getHasStoriesDisabled();
|
const getStoriesDisabled = () => window.Events.getHasStoriesDisabled();
|
||||||
|
|
||||||
export const getStoriesBlocked = (): boolean =>
|
export const getStoriesBlocked = (): boolean =>
|
||||||
!getStoriesAvailable() || getStoriesDisabled();
|
!getStoriesAvailable() || getStoriesDisabled();
|
||||||
|
|
Loading…
Reference in a new issue