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

Show IV button only if supported.

This commit is contained in:
John Preston
2024-03-12 18:17:43 +04:00
parent d43f0be0da
commit e20770e256
5 changed files with 27 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ WebPageType ParseWebPageType(
}
bool IgnoreIv(WebPageType type) {
return (type == WebPageType::Message);
return !Iv::ShowButton() || (type == WebPageType::Message);
}
WebPageType ParseWebPageType(const MTPDwebPage &page) {