Normalize the distribution list and UUIDs iOS sends us
This commit is contained in:
parent
4a39264188
commit
7d2b91368d
3 changed files with 20 additions and 5 deletions
|
@ -13,6 +13,7 @@ import {
|
|||
getMessageIdForLogging,
|
||||
} from './idForLogging';
|
||||
import { isStory } from '../state/selectors/message';
|
||||
import { normalizeUuid } from './normalizeUuid';
|
||||
import { queueUpdateMessage } from './messageBatcher';
|
||||
|
||||
export async function onStoryRecipientUpdate(
|
||||
|
@ -58,7 +59,11 @@ export async function onStoryRecipientUpdate(
|
|||
|
||||
conversationIdToDistributionListIds.set(
|
||||
convo.id,
|
||||
new Set(item.distributionListIds)
|
||||
new Set(
|
||||
item.distributionListIds.map(uuid =>
|
||||
normalizeUuid(uuid, 'onStoryRecipientUpdate.distributionListId')
|
||||
)
|
||||
)
|
||||
);
|
||||
isAllowedToReply.set(convo.id, item.isAllowedToReply !== false);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue