fix: deleteMemberContent is optional

pull/3281/head
Audric Ackermann 3 months ago
parent 3bebb3ef7f
commit 2e6f09cbec
No known key found for this signature in database

@ -54,7 +54,7 @@ export class GroupUpdateDeleteMemberContentMessage extends GroupUpdateMessage {
public dataProto(): SignalService.DataMessage {
// If we have the secretKey, we can delete it for anyone `"DELETE_CONTENT" || timestamp || sessionId[0] || ... || messageHashes[0] || ...`
let adminSignature = new Uint8Array();
let adminSignature: Uint8Array | undefined;
if (this.secretKey && !_.isEmpty(this.secretKey) && this.sodium) {
adminSignature = this.sodium.crypto_sign_detached(
stringToUint8Array(

Loading…
Cancel
Save