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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user