mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added local event for recent joined chats.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user