2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 08:25:38 +00:00

Fix crash in support switches.

This commit is contained in:
John Preston
2018-11-19 14:03:18 +04:00
parent 92f6949ecc
commit c522e047c6

View File

@@ -3739,9 +3739,10 @@ void HistoryWidget::handleSupportSwitch(not_null<History*> updated) {
return; return;
} }
crl::on_main( const auto setting = Auth().settings().supportSwitch();
this, if (auto method = Support::GetSwitchMethod(setting)) {
Support::GetSwitchMethod(Auth().settings().supportSwitch())); crl::on_main(this, std::move(method));
}
} }
void HistoryWidget::inlineBotResolveDone( void HistoryWidget::inlineBotResolveDone(