mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Introduce Service Id Types
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
committed by
Jamie Kyle
parent
414c0a58d3
commit
366b875fd2
@@ -19,7 +19,7 @@ import type {
|
||||
} from './Attachment';
|
||||
import { toLogFormat } from './errors';
|
||||
import type { LoggerType } from './Logging';
|
||||
import type { UUIDStringType } from './UUID';
|
||||
import type { ServiceIdString } from './ServiceId';
|
||||
|
||||
type GenericEmbeddedContactType<AvatarType> = {
|
||||
name?: Name;
|
||||
@@ -31,7 +31,7 @@ type GenericEmbeddedContactType<AvatarType> = {
|
||||
|
||||
// Populated by selector
|
||||
firstNumber?: string;
|
||||
uuid?: UUIDStringType;
|
||||
uuid?: ServiceIdString;
|
||||
};
|
||||
|
||||
export type EmbeddedContactType = GenericEmbeddedContactType<Avatar>;
|
||||
@@ -149,7 +149,7 @@ export function embeddedContactSelector(
|
||||
options: {
|
||||
regionCode?: string;
|
||||
firstNumber?: string;
|
||||
uuid?: UUIDStringType;
|
||||
uuid?: ServiceIdString;
|
||||
getAbsoluteAttachmentPath: (path: string) => string;
|
||||
}
|
||||
): EmbeddedContactType {
|
||||
|
||||
Reference in New Issue
Block a user