Add event handler for message deletion to sync tracker state and update UI to reflect the new most-recent message in chat

This commit is contained in:
Daryl
2026-02-21 21:45:47 -04:00
parent 8f2dbd2f88
commit 4b816dd1fd
2 changed files with 84 additions and 0 deletions
+2
View File
@@ -151,6 +151,7 @@ import {
onMessageReceived,
onCharacterChanged,
onMessageSwiped,
onMessageDeleted,
updatePersonaAvatar,
clearExtensionPrompts,
onGenerationEnded,
@@ -1354,6 +1355,7 @@ jQuery(async () => {
[event_types.GENERATION_ENDED]: onGenerationEnded,
[event_types.CHAT_CHANGED]: [onCharacterChanged, updatePersonaAvatar, restoreCheckpointOnLoad, clearSessionAvatarPrompts],
[event_types.MESSAGE_SWIPED]: onMessageSwiped,
[event_types.MESSAGE_DELETED]: onMessageDeleted,
[event_types.USER_MESSAGE_RENDERED]: updatePersonaAvatar,
[event_types.SETTINGS_UPDATED]: updatePersonaAvatar
});