Support PeerData::isVerifyCodes() peer type.

This commit is contained in:
John Preston
2024-09-20 17:29:30 +04:00
parent 4803bd4b3f
commit 79b1c0edee
47 changed files with 391 additions and 85 deletions
@@ -216,7 +216,7 @@ inline auto DefaultRestrictionValue(
ChatRestrictions rights,
bool forbidInForums) {
if (const auto user = peer->asUser()) {
if (user->isRepliesChat()) {
if (user->isRepliesChat() || user->isVerifyCodes()) {
return rpl::single(false);
}
using namespace rpl::mappers;