mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Improve update handling for legacy chats.
This commit is contained in:
@@ -1175,11 +1175,11 @@ void ShareGameScoreByHash(const QString &hash) {
|
||||
} else {
|
||||
auto requestChannelIds = MTP_vector<MTPInputChannel>(1, MTP_inputChannel(MTP_int(channelId), MTP_long(channelAccessHash)));
|
||||
auto requestChannel = MTPchannels_GetChannels(requestChannelIds);
|
||||
MTP::send(requestChannel, rpcDone([channelId, resolveMessageAndShareScore](const MTPmessages_Chats &result) {
|
||||
if (auto chats = Api::getChatsFromMessagesChats(result)) {
|
||||
App::feedChats(*chats);
|
||||
}
|
||||
if (auto channel = App::channelLoaded(channelId)) {
|
||||
MTP::send(requestChannel, rpcDone([=](const MTPmessages_Chats &result) {
|
||||
result.match([](const auto &data) {
|
||||
App::feedChats(data.vchats);
|
||||
});
|
||||
if (const auto channel = App::channelLoaded(channelId)) {
|
||||
resolveMessageAndShareScore(channel);
|
||||
}
|
||||
}));
|
||||
|
Reference in New Issue
Block a user