Introduce Service Id Types

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny 2023-08-10 18:43:33 +02:00 committed by Jamie Kyle
parent 414c0a58d3
commit 366b875fd2
269 changed files with 5832 additions and 5550 deletions

View file

@ -2,7 +2,6 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { isBucketValueEnabled, isEnabled } from '../RemoteConfig';
import { UUIDKind } from '../types/UUID';
import { isBeta } from './version';
// Note: selectors/items is the other place this check is done
@ -11,7 +10,7 @@ export const getStoriesAvailable = (): boolean => {
isBucketValueEnabled(
'desktop.stories2',
window.textsecure.storage.user.getNumber(),
window.textsecure.storage.user.getUuid(UUIDKind.ACI)?.toString()
window.textsecure.storage.user.getAci()
)
) {
return true;