Fixed all connections count and renamed MY_STORIES_ID and EditMyStoriesPrivacyModal

This commit is contained in:
Alvaro 2022-11-10 08:51:39 -07:00 committed by GitHub
parent be6e988a95
commit 45069673ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 86 additions and 82 deletions

View file

@ -14,7 +14,7 @@ import * as durations from '../../util/durations';
import { UUID } from '../../types/UUID';
import { getDefaultConversation } from './getDefaultConversation';
import { fakeAttachment, fakeThumbnail } from './fakeAttachment';
import { MY_STORIES_ID } from '../../types/Stories';
import { MY_STORY_ID } from '../../types/Stories';
function getAttachmentWithThumbnail(url: string): AttachmentType {
return fakeAttachment({
@ -28,7 +28,7 @@ export function getFakeMyStory(id?: string, name?: string): MyStoryType {
return {
id: id || UUID.generate().toString(),
name: name || id === MY_STORIES_ID ? 'My Stories' : casual.catch_phrase,
name: name || id === MY_STORY_ID ? 'My Stories' : casual.catch_phrase,
stories: Array.from(Array(storyCount), () => ({
...getFakeStoryView(),
sendState: [],