applyMessageRequestResponse: Don't leaveGroup in 1:1 conversations

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-02-24 16:27:36 -08:00 committed by GitHub
parent e19df56a58
commit 551969c56e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -2093,10 +2093,7 @@ export class ConversationModel extends window.Backbone
this.disableProfileSharing({ viaStorageServiceSync });
if (isLocalAction) {
if (
isGroupV1(this.attributes) ||
isDirectConversation(this.attributes)
) {
if (isGroupV1(this.attributes)) {
await this.leaveGroup();
} else if (isGroupV2(this.attributes)) {
await this.leaveGroupV2();
@ -2113,10 +2110,7 @@ export class ConversationModel extends window.Backbone
if (isLocalAction) {
this.trigger('unload', 'deleted from message request');
if (
isGroupV1(this.attributes) ||
isDirectConversation(this.attributes)
) {
if (isGroupV1(this.attributes)) {
await this.leaveGroup();
} else if (isGroupV2(this.attributes)) {
await this.leaveGroupV2();
@ -2135,10 +2129,7 @@ export class ConversationModel extends window.Backbone
if (isLocalAction) {
this.trigger('unload', 'blocked and deleted from message request');
if (
isGroupV1(this.attributes) ||
isDirectConversation(this.attributes)
) {
if (isGroupV1(this.attributes)) {
await this.leaveGroup();
} else if (isGroupV2(this.attributes)) {
await this.leaveGroupV2();