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.showUserBadges2'
|
||||
| 'desktop.stories'
|
||||
| 'desktop.stories.beta'
|
||||
| 'desktop.usernames'
|
||||
| 'global.attachments.maxBytes'
|
||||
| 'global.calling.maxGroupCallRingSize'
|
||||
| 'global.groupsv2.groupSizeHardLimit'
|
||||
| 'global.groupsv2.maxGroupSize';
|
||||
|
||||
type ConfigValueType = {
|
||||
name: ConfigKeyType;
|
||||
enabled: boolean;
|
||||
|
|
|
@ -34,6 +34,10 @@ const releaseNotes: ReleaseNotesType = {
|
|||
key: 'WhatsNew__v5.63--0',
|
||||
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 { UUIDStringType } from './UUID';
|
||||
import { isEnabled } from '../RemoteConfig';
|
||||
import { isBeta } from '../util/version';
|
||||
|
||||
export type ReplyType = {
|
||||
author: Pick<
|
||||
|
@ -145,7 +146,11 @@ export enum HasStories {
|
|||
}
|
||||
|
||||
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();
|
||||
|
||||
export const getStoriesBlocked = (): boolean =>
|
||||
!getStoriesAvailable() || getStoriesDisabled();
|
||||
|
|
Loading…
Reference in a new issue