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

@ -1155,12 +1155,13 @@ export async function startApp(): Promise<void> {
conversationChanged,
conversationRemoved,
removeAllConversations,
onConversationClosed,
} = window.reduxActions.conversations;
convoCollection.on('remove', conversation => {
const { id } = conversation || {};
conversation.trigger('unload', 'removed');
onConversationClosed(id, 'removed');
conversationRemoved(id);
});
convoCollection.on('add', conversation => {
@ -1580,7 +1581,7 @@ export async function startApp(): Promise<void> {
event.preventDefault();
event.stopPropagation();
conversation.trigger('unload', 'keyboard shortcut close');
onConversationClosed(conversation.id, 'keyboard shortcut close');
window.reduxActions.conversations.showConversation({
conversationId: undefined,
messageId: undefined,