Merge pull request #2452 from ThisIsPIRI/newchat Skip popup when making new chat from chat list
Signed| @@ -9708,14 +9708,8 @@ jQuery(async function () { | ||
| 9708 | 9708 | }); |
| 9709 | 9709 | |
| 9710 | 9710 | $('#newChatFromManageScreenButton').on('click', function () { |
| 9711 | - setTimeout(() => { | |
| 9711 | + doNewChat({ deleteCurrentChat: false }); | |
| 9712 | - $('#option_start_new_chat').trigger('click'); | |
| 9713 | - }, 1); | |
| 9714 | - setTimeout(() => { | |
| 9715 | - $('#dialogue_popup_ok').trigger('click'); | |
| 9716 | - }, 1); | |
| 9717 | 9712 | $('#select_chat_cross').trigger('click'); |
| 9718 | - | |
| 9719 | 9713 | }); |
| 9720 | 9714 | |
| 9721 | 9715 | ////////////////////////////////////////////////////////////////////////////////////////////// |