Added local event for recent joined chats.

This commit is contained in:
23rd
2025-11-01 16:00:03 +03:00
parent 581ec70bf3
commit 679c932697
3 changed files with 22 additions and 0 deletions
+5
View File
@@ -1740,6 +1740,11 @@ void ApiWrap::joinChannel(not_null<ChannelData*> channel) {
)).done([=](const MTPUpdates &result) {
_channelAmInRequests.remove(channel);
applyUpdates(result);
session().data().addRecentJoinChat({
.fromPeerId = channel->id,
.joinedPeerId = channel->id,
});
}).fail([=](const MTP::Error &error) {
const auto &type = error.type();