Sync stories sent to a group

This commit is contained in:
Josh Perez 2022-08-04 21:13:26 -04:00 committed by GitHub
parent 808118d1e4
commit dca848389c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 25 deletions

View file

@ -27,9 +27,8 @@ export function getFakeMyStory(id?: string, name?: string): MyStoryType {
const storyCount = casual.integer(2, 6);
return {
distributionId: id || UUID.generate().toString(),
distributionName:
name || id === MY_STORIES_ID ? 'My Stories' : casual.catch_phrase,
id: id || UUID.generate().toString(),
name: name || id === MY_STORIES_ID ? 'My Stories' : casual.catch_phrase,
stories: Array.from(Array(storyCount), () => ({
...getFakeStoryView(),
sendState: [],