mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
17 lines
414 B
TypeScript
17 lines
414 B
TypeScript
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
import type { ConversationType } from '../state/ducks/conversations.preload.js';
|
|
import { isAciString } from './isAciString.std.js';
|
|
|
|
export const isSafetyNumberNotAvailable = (
|
|
contact?: ConversationType
|
|
): boolean => {
|
|
// We have a contact
|
|
if (!contact) {
|
|
return true;
|
|
}
|
|
|
|
return !isAciString(contact.serviceId);
|
|
};
|