From 6e8825cdd554cb28a5aae39d83b944bedf751c18 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 1 Nov 2025 18:48:50 +0300 Subject: [PATCH] Added ability to add newly created chat to folder. --- Telegram/SourceFiles/boxes/add_contact_box.cpp | 4 ++++ Telegram/SourceFiles/boxes/peers/add_participants_box.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Telegram/SourceFiles/boxes/add_contact_box.cpp b/Telegram/SourceFiles/boxes/add_contact_box.cpp index 6e9bc23955..a6b4c555ea 100644 --- a/Telegram/SourceFiles/boxes/add_contact_box.cpp +++ b/Telegram/SourceFiles/boxes/add_contact_box.cpp @@ -111,6 +111,10 @@ void ChatCreateDone( show, chat, CollectForbiddenUsers(&chat->session(), result)); + chat->owner().addRecentJoinChat({ + .fromPeerId = chat->id, + .joinedPeerId = chat->id, + }); } }; if (!success) { diff --git a/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp index a5f2ec3c30..2ece4c18aa 100644 --- a/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/add_participants_box.cpp @@ -1070,6 +1070,10 @@ void AddParticipantsBoxController::Start( channel, params, ShowAtTheEndMsgId); + channel->owner().addRecentJoinChat({ + .fromPeerId = channel->id, + .joinedPeerId = channel->id, + }); } }, box->lifetime()); }