Check for message being edited in beforeunload
| @@ -11732,7 +11732,7 @@ jQuery(async function () { | ||
| 11732 | 11732 | await firstLoadInit(); |
| 11733 | 11733 | |
| 11734 | 11734 | window.addEventListener('beforeunload', (e) => { |
| 11735 | 11735 | if (isChatSaving || this_edit_mes_id >= 0) { |
| 11736 | 11736 | e.preventDefault(); |
| 11737 | 11737 | e.returnValue = true; |
| 11738 | 11738 | } |