applyMessageRequestResponse: Don't leaveGroup in 1:1 conversations
This commit is contained in:
parent
112de16d06
commit
7431f151b2
1 changed files with 3 additions and 12 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue