2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Don't check config.phonecalls_enabled value.

This commit is contained in:
John Preston
2022-02-09 14:59:13 +03:00
parent f57d21eaeb
commit 1501a6d8fc
5 changed files with 4 additions and 17 deletions

View File

@@ -430,9 +430,7 @@ void WrapWidget::addProfileCallsButton() {
const auto peer = key().peer();
const auto user = peer ? peer->asUser() : nullptr;
if (!user
|| user->sharedMediaInfo()
|| !user->session().serverConfig().phoneCallsEnabled.current()) {
if (!user || user->sharedMediaInfo()) {
return;
}