Removes Backbone.View and jQuery

This commit is contained in:
Josh Perez 2023-01-02 16:34:41 -05:00 committed by GitHub
parent 26d689982a
commit 5e6eeecede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 1113 additions and 7637 deletions

View file

@ -236,9 +236,9 @@ export class ConversationModel extends window.Backbone
throttledBumpTyping?: () => void;
throttledFetchSMSOnlyUUID?: () => Promise<void> | void;
throttledFetchSMSOnlyUUID?: () => Promise<void> | undefined;
throttledMaybeMigrateV1Group?: () => Promise<void> | void;
throttledMaybeMigrateV1Group?: () => Promise<void> | undefined;
throttledGetProfiles?: () => Promise<void>;
@ -2286,7 +2286,10 @@ export class ConversationModel extends window.Backbone
void this.updateLastMessage();
if (isLocalAction) {
this.trigger('unload', 'deleted from message request');
window.reduxActions.conversations.onConversationClosed(
this.id,
'deleted from message request'
);
if (isGroupV1(this.attributes)) {
await this.leaveGroup();
@ -2305,7 +2308,10 @@ export class ConversationModel extends window.Backbone
void this.updateLastMessage();
if (isLocalAction) {
this.trigger('unload', 'blocked and deleted from message request');
window.reduxActions.conversations.onConversationClosed(
this.id,
'blocked and deleted from message request'
);
if (isGroupV1(this.attributes)) {
await this.leaveGroup();