2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Implement premium lock of similar channels.

This commit is contained in:
John Preston
2023-11-28 12:54:17 +04:00
parent 2542ec5d93
commit ae1da5baf4
18 changed files with 785 additions and 112 deletions

View File

@@ -227,7 +227,9 @@ void ApplyBotsList(
}
}
if constexpr (MTPDmessages_chatsSlice::Is<decltype(data)>()) {
result.more = data.vcount().v - data.vchats().v.size();
if (channel->session().premiumPossible()) {
result.more = data.vcount().v - data.vchats().v.size();
}
}
});
return result;