Initial logic for release notes

This commit is contained in:
ayumi-signal 2024-11-27 14:11:53 -08:00 committed by GitHub
parent 34ef8dc2c8
commit c5301688a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 491 additions and 5 deletions

View file

@ -43,6 +43,7 @@ import { getKeysForServiceId } from './getKeysForServiceId';
import { SignalService as Proto } from '../protobuf';
import * as log from '../logging/log';
import type { GroupSendToken } from '../types/GroupSendEndorsements';
import { isSignalServiceId } from '../util/isSignalConversation';
export const enum SenderCertificateMode {
WithE164,
@ -686,6 +687,15 @@ export default class OutgoingMessage {
}
async sendToServiceId(serviceId: ServiceIdString): Promise<void> {
if (isSignalServiceId(serviceId)) {
this.registerError(
serviceId,
'Failed to send to Signal serviceId',
new Error("Can't send to Signal serviceId")
);
return;
}
try {
const ourAci = window.textsecure.storage.user.getCheckedAci();
const deviceIds = await window.textsecure.storage.protocol.getDeviceIds({