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()); }