Check for message being edited in beforeunload

9f7677c04b47329379a688021dfaca6e1ebec0f2

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

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -11732,7 +11732,7 @@ jQuery(async function () {
11732 await firstLoadInit();11732 await firstLoadInit();
1173311733
11734 window.addEventListener('beforeunload', (e) => {11734 window.addEventListener('beforeunload', (e) => {
11735 if (isChatSaving) {11735 if (isChatSaving || this_edit_mes_id >= 0) {
11736 e.preventDefault();11736 e.preventDefault();
11737 e.returnValue = true;11737 e.returnValue = true;
11738 }11738 }