Don't send group update on PNI decline

This commit is contained in:
Fedor Indutny 2023-05-24 01:38:58 +02:00 committed by GitHub
parent a31cf5645e
commit 3ff390e1c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 2 deletions

View file

@ -755,12 +755,14 @@ export class ConversationModel extends window.Backbone
extraConversationsForSend,
inviteLinkPassword,
name,
syncMessageOnly,
}: {
usingCredentialsFrom: ReadonlyArray<ConversationModel>;
createGroupChange: () => Promise<Proto.GroupChange.Actions | undefined>;
extraConversationsForSend?: ReadonlyArray<string>;
inviteLinkPassword?: string;
name: string;
syncMessageOnly?: boolean;
}): Promise<void> {
await window.Signal.Groups.modifyGroupV2({
conversation: this,
@ -769,6 +771,7 @@ export class ConversationModel extends window.Backbone
extraConversationsForSend,
inviteLinkPassword,
name,
syncMessageOnly,
});
}
@ -2597,6 +2600,7 @@ export class ConversationModel extends window.Backbone
name: 'delete',
usingCredentialsFrom: [],
createGroupChange: () => this.removePendingMember([ourPNI]),
syncMessageOnly: true,
});
} else {
const logId = this.idForLogging();