mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-03 12:58:11 +00:00
Fix crash in support switches.
This commit is contained in:
parent
92f6949ecc
commit
c522e047c6
@ -3739,9 +3739,10 @@ void HistoryWidget::handleSupportSwitch(not_null<History*> updated) {
|
||||
return;
|
||||
}
|
||||
|
||||
crl::on_main(
|
||||
this,
|
||||
Support::GetSwitchMethod(Auth().settings().supportSwitch()));
|
||||
const auto setting = Auth().settings().supportSwitch();
|
||||
if (auto method = Support::GetSwitchMethod(setting)) {
|
||||
crl::on_main(this, std::move(method));
|
||||
}
|
||||
}
|
||||
|
||||
void HistoryWidget::inlineBotResolveDone(
|
||||
|
Loading…
Reference in New Issue
Block a user