Added ability to add newly created chat to folder.

This commit is contained in:
23rd
2025-11-01 18:48:50 +03:00
parent 1c19895ce7
commit 6e8825cdd5
2 changed files with 8 additions and 0 deletions
@@ -111,6 +111,10 @@ void ChatCreateDone(
show, show,
chat, chat,
CollectForbiddenUsers(&chat->session(), result)); CollectForbiddenUsers(&chat->session(), result));
chat->owner().addRecentJoinChat({
.fromPeerId = chat->id,
.joinedPeerId = chat->id,
});
} }
}; };
if (!success) { if (!success) {
@@ -1070,6 +1070,10 @@ void AddParticipantsBoxController::Start(
channel, channel,
params, params,
ShowAtTheEndMsgId); ShowAtTheEndMsgId);
channel->owner().addRecentJoinChat({
.fromPeerId = channel->id,
.joinedPeerId = channel->id,
});
} }
}, box->lifetime()); }, box->lifetime());
} }