Initial donation amount picker

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
ayumi-signal 2025-07-15 09:52:56 -07:00 committed by GitHub
commit 26933bf8d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 855 additions and 186 deletions

View file

@ -64,6 +64,7 @@ import type {
} from '../textsecure/Types';
import type { ServiceIdString } from '../types/ServiceId';
import type { LinkPreviewType } from '../types/message/LinkPreviews';
import { getCachedSubscriptionConfiguration } from '../util/subscriptionConfiguration';
const log = createLogger('handleDataMessage');
@ -760,11 +761,7 @@ export async function handleDataMessage(
typeof updatesUrl === 'string',
'getProfile: expected updatesUrl to be a defined string'
);
const { messaging } = window.textsecure;
if (!messaging) {
throw new Error(`${idLog}: messaging is not available`);
}
const response = await messaging.server.getSubscriptionConfiguration();
const response = await getCachedSubscriptionConfiguration();
const boostBadgesByLevel = parseBoostBadgeListFromServer(
response,
updatesUrl