Emit message_updated on edit cancel

675f9076a4cb7f28d848390c15a22bcaa3bca62f

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -1Showing whitespace changes
public/script.js+3 -1
@@ -10151,7 +10151,7 @@ jQuery(async function () {
1015110151 }
1015210152 });
1015310153
1015410154 $(document).on('click', '.mes_edit_cancel', async function () {
1015510155 let text = chat[this_edit_mes_id]['mes'];
1015610156
1015710157 $(this).closest('.mes_block').find('.mes_text').empty();
@@ -10169,6 +10169,8 @@ jQuery(async function () {
1016910169 ));
1017010170 appendMediaToMessage(chat[this_edit_mes_id], $(this).closest('.mes'));
1017110171 addCopyToCodeBlocks($(this).closest('.mes'));
10172+
10173+ await eventSource.emit(event_types.MESSAGE_UPDATED, this_edit_mes_id);
1017210174 this_edit_mes_id = undefined;
1017310175 });
1017410176