Initial logic for release notes
This commit is contained in:
parent
34ef8dc2c8
commit
c5301688a1
13 changed files with 491 additions and 5 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue