@@ -122,7 +123,8 @@ export const CallingParticipantsList = React.memo(
sharedGroupNames={participant.sharedGroupNames}
size={AvatarSize.THIRTY_TWO}
/>
- {ourUuid && participant.uuid === ourUuid ? (
+ {ourServiceId &&
+ participant.serviceId === ourServiceId ? (
{i18n('icu:you')}
diff --git a/ts/components/CallingPreCallInfo.tsx b/ts/components/CallingPreCallInfo.tsx
index 1dff078197..72992f33fd 100644
--- a/ts/components/CallingPreCallInfo.tsx
+++ b/ts/components/CallingPreCallInfo.tsx
@@ -30,14 +30,14 @@ type PropsType = {
| 'unblurredAvatarPath'
>;
i18n: LocalizerType;
- me: Pick
;
+ me: Pick;
ringMode: RingMode;
// The following should only be set for group conversations.
groupMembers?: Array>;
isCallFull?: boolean;
peekedParticipants?: Array<
- Pick
+ Pick
>;
};
@@ -61,7 +61,7 @@ export function CallingPreCallInfo({
// device.
let hasYou = false;
const participantNames = peekedParticipants.map(participant => {
- if (participant.uuid === me.uuid) {
+ if (participant.serviceId === me.serviceId) {
hasYou = true;
return i18n('icu:you');
}
diff --git a/ts/components/CompositionArea.tsx b/ts/components/CompositionArea.tsx
index 4127002a8a..1a7661fd36 100644
--- a/ts/components/CompositionArea.tsx
+++ b/ts/components/CompositionArea.tsx
@@ -36,6 +36,7 @@ import type {
InMemoryAttachmentDraftType,
} from '../types/Attachment';
import { isImageAttachment, isVoiceMessage } from '../types/Attachment';
+import type { AciString } from '../types/ServiceId';
import { AudioCapture } from './conversation/AudioCapture';
import { CompositionUpload } from './CompositionUpload';
import type {
@@ -87,7 +88,6 @@ export type OwnProps = Readonly<{
conversationId: string;
discardEditMessage: (id: string) => unknown;
draftEditMessage?: DraftEditMessageType;
- uuid?: string;
draftAttachments: ReadonlyArray;
errorDialogAudioRecorderType?: ErrorDialogAudioRecorderType;
errorRecording: (e: ErrorDialogAudioRecorderType) => unknown;
@@ -131,7 +131,7 @@ export type OwnProps = Readonly<{
options: {
bodyRanges?: DraftBodyRanges;
message?: string;
- quoteAuthorUuid?: string;
+ quoteAuthorAci?: AciString;
quoteSentAt?: number;
targetMessageId: string;
}
@@ -153,7 +153,7 @@ export type OwnProps = Readonly<{
'i18n' | 'onClick' | 'onClose' | 'withContentAbove' | 'isCompose'
>
>;
- quotedMessageAuthorUuid?: string;
+ quotedMessageAuthorAci?: AciString;
quotedMessageSentAt?: number;
removeAttachment: (conversationId: string, filePath: string) => unknown;
@@ -256,7 +256,7 @@ export function CompositionArea({
// Quote
quotedMessageId,
quotedMessageProps,
- quotedMessageAuthorUuid,
+ quotedMessageAuthorAci,
quotedMessageSentAt,
scrollToMessage,
// MediaQualitySelector
@@ -356,7 +356,7 @@ export function CompositionArea({
message,
// sent timestamp for the quote
quoteSentAt: quotedMessageSentAt,
- quoteAuthorUuid: quotedMessageAuthorUuid,
+ quoteAuthorAci: quotedMessageAuthorAci,
targetMessageId: editedMessageId,
});
} else {
@@ -374,7 +374,7 @@ export function CompositionArea({
draftAttachments,
editedMessageId,
quotedMessageSentAt,
- quotedMessageAuthorUuid,
+ quotedMessageAuthorAci,
sendEditedMessage,
sendMultiMediaMessage,
setLarge,
diff --git a/ts/components/CompositionInput.stories.tsx b/ts/components/CompositionInput.stories.tsx
index 9833cbfa3d..e9b57d1dc0 100644
--- a/ts/components/CompositionInput.stories.tsx
+++ b/ts/components/CompositionInput.stories.tsx
@@ -138,7 +138,7 @@ export function Mentions(): JSX.Element {
{
start: 5,
length: 1,
- mentionUuid: generateAci(),
+ mentionAci: generateAci(),
conversationID: 'k',
replacementText: 'Kate Beaton',
},
diff --git a/ts/components/CompositionInput.tsx b/ts/components/CompositionInput.tsx
index 03cec3fc76..d41eb93b2d 100644
--- a/ts/components/CompositionInput.tsx
+++ b/ts/components/CompositionInput.tsx
@@ -26,7 +26,7 @@ import { BodyRange, collapseRangeTree, insertRange } from '../types/BodyRange';
import type { LocalizerType, ThemeType } from '../types/Util';
import type { ConversationType } from '../state/ducks/conversations';
import type { PreferredBadgeSelectorType } from '../state/selectors/badges';
-import { isServiceIdString } from '../types/ServiceId';
+import { isAciString } from '../types/ServiceId';
import { MentionBlot } from '../quill/mentions/blot';
import {
matchEmojiImage,
@@ -678,15 +678,12 @@ export function CompositionInput(props: Props): React.ReactElement {
return;
}
- const currentMemberServiceIds = currentMembers
- .map(m => m.uuid)
+ const currentMemberAcis = currentMembers
+ .map(m => m.serviceId)
.filter(isNotNil)
- .filter(isServiceIdString);
+ .filter(isAciString);
- const newDelta = getDeltaToRemoveStaleMentions(
- ops,
- currentMemberServiceIds
- );
+ const newDelta = getDeltaToRemoveStaleMentions(ops, currentMemberAcis);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
quill.updateContents(newDelta as any);
diff --git a/ts/components/ConversationList.tsx b/ts/components/ConversationList.tsx
index 29e6575488..7c9e658b12 100644
--- a/ts/components/ConversationList.tsx
+++ b/ts/components/ConversationList.tsx
@@ -374,7 +374,7 @@ export function ConversationList({
'unblurredAvatarPath',
'unreadCount',
'unreadMentionsCount',
- 'uuid',
+ 'serviceId',
]);
const { badges, title, unreadCount, lastMessage } = itemProps;
result = (
diff --git a/ts/components/GroupCallOverflowArea.stories.tsx b/ts/components/GroupCallOverflowArea.stories.tsx
index 2640282eb0..79927e3a67 100644
--- a/ts/components/GroupCallOverflowArea.stories.tsx
+++ b/ts/components/GroupCallOverflowArea.stories.tsx
@@ -8,7 +8,7 @@ import { action } from '@storybook/addon-actions';
import { GroupCallOverflowArea } from './GroupCallOverflowArea';
import { setupI18n } from '../util/setupI18n';
-import { getDefaultConversationWithUuid } from '../test-both/helpers/getDefaultConversation';
+import { getDefaultConversationWithServiceId } from '../test-both/helpers/getDefaultConversation';
import { fakeGetGroupCallVideoFrameSource } from '../test-both/helpers/fakeGetGroupCallVideoFrameSource';
import { FRAME_BUFFER_SIZE } from '../calling/constants';
import enMessages from '../../_locales/en/messages.json';
@@ -24,7 +24,7 @@ const allRemoteParticipants = times(MAX_PARTICIPANTS).map(index => ({
presenting: false,
sharingScreen: false,
videoAspectRatio: 1.3,
- ...getDefaultConversationWithUuid({
+ ...getDefaultConversationWithServiceId({
isBlocked: index === 10 || index === MAX_PARTICIPANTS - 1,
title: `Participant ${index + 1}`,
}),
diff --git a/ts/components/GroupCallRemoteParticipant.stories.tsx b/ts/components/GroupCallRemoteParticipant.stories.tsx
index 7114f28d67..1abd6b4621 100644
--- a/ts/components/GroupCallRemoteParticipant.stories.tsx
+++ b/ts/components/GroupCallRemoteParticipant.stories.tsx
@@ -61,7 +61,7 @@ const createProps = (
isBlocked: Boolean(isBlocked),
title:
'Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso',
- uuid: generateAci(),
+ serviceId: generateAci(),
}),
},
remoteParticipantsCount: 1,
diff --git a/ts/components/SafetyNumberChangeDialog.tsx b/ts/components/SafetyNumberChangeDialog.tsx
index 7df12edadc..0aa4410aa8 100644
--- a/ts/components/SafetyNumberChangeDialog.tsx
+++ b/ts/components/SafetyNumberChangeDialog.tsx
@@ -310,7 +310,9 @@ function ContactSection({
}
const { distributionId } = section.story;
- const uuids = section.contacts.map(contact => contact.uuid).filter(isNotNil);
+ const serviceIds = section.contacts
+ .map(contact => contact.serviceId)
+ .filter(isNotNil);
const sectionName =
distributionId === MY_STORY_ID
? i18n('icu:Stories__mine')
@@ -322,17 +324,17 @@ function ContactSection({
{sectionName}
- {distributionId && removeFromStory && uuids.length > 1 && (
+ {distributionId && removeFromStory && serviceIds.length > 1 && (
{
- removeFromStory(distributionId, uuids);
+ removeFromStory(distributionId, serviceIds);
}}
/>
)}
@@ -443,7 +445,7 @@ function ContactRow({
shouldShowNumber: boolean;
theme: ThemeType;
}>) {
- const { uuid } = contact;
+ const { serviceId } = contact;
return (
@@ -493,14 +495,14 @@ function ContactRow({
) : null}
- {distributionId && removeFromStory && uuid ? (
+ {distributionId && removeFromStory && serviceId ? (