Correct identifier for story records

This commit is contained in:
Fedor Indutny 2022-07-06 17:34:13 -07:00 committed by GitHub
parent 3111b804de
commit 565425c8b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,11 @@
import { isEqual, isNumber } from 'lodash';
import Long from 'long';
import { bytesToUuid, deriveMasterKeyFromGroupV1 } from '../Crypto';
import {
uuidToBytes,
bytesToUuid,
deriveMasterKeyFromGroupV1,
} from '../Crypto';
import * as Bytes from '../Bytes';
import {
deriveGroupFields,
@ -383,7 +387,7 @@ export function toStoryDistributionListRecord(
): Proto.StoryDistributionListRecord {
const storyDistributionListRecord = new Proto.StoryDistributionListRecord();
storyDistributionListRecord.identifier = Bytes.fromBinary(
storyDistributionListRecord.identifier = uuidToBytes(
storyDistributionList.id
);
storyDistributionListRecord.name = storyDistributionList.name;