Correct identifier for story records
This commit is contained in:
parent
3111b804de
commit
565425c8b6
1 changed files with 6 additions and 2 deletions
|
@ -4,7 +4,11 @@
|
||||||
import { isEqual, isNumber } from 'lodash';
|
import { isEqual, isNumber } from 'lodash';
|
||||||
import Long from 'long';
|
import Long from 'long';
|
||||||
|
|
||||||
import { bytesToUuid, deriveMasterKeyFromGroupV1 } from '../Crypto';
|
import {
|
||||||
|
uuidToBytes,
|
||||||
|
bytesToUuid,
|
||||||
|
deriveMasterKeyFromGroupV1,
|
||||||
|
} from '../Crypto';
|
||||||
import * as Bytes from '../Bytes';
|
import * as Bytes from '../Bytes';
|
||||||
import {
|
import {
|
||||||
deriveGroupFields,
|
deriveGroupFields,
|
||||||
|
@ -383,7 +387,7 @@ export function toStoryDistributionListRecord(
|
||||||
): Proto.StoryDistributionListRecord {
|
): Proto.StoryDistributionListRecord {
|
||||||
const storyDistributionListRecord = new Proto.StoryDistributionListRecord();
|
const storyDistributionListRecord = new Proto.StoryDistributionListRecord();
|
||||||
|
|
||||||
storyDistributionListRecord.identifier = Bytes.fromBinary(
|
storyDistributionListRecord.identifier = uuidToBytes(
|
||||||
storyDistributionList.id
|
storyDistributionList.id
|
||||||
);
|
);
|
||||||
storyDistributionListRecord.name = storyDistributionList.name;
|
storyDistributionListRecord.name = storyDistributionList.name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue