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

Fix crash in subscribe button.

This commit is contained in:
John Preston
2022-09-23 12:35:23 +04:00
parent d4a2c4a151
commit eac13b31f1

View File

@@ -1783,7 +1783,7 @@ not_null<Ui::GradientButton*> CreateSubscribeButton(
controller = args.controller,
computeRef = args.computeRef,
computeBotUrl = args.computeBotUrl] {
const auto url = computeBotUrl ? QString() : computeBotUrl();
const auto url = computeBotUrl ? computeBotUrl() : QString();
if (!url.isEmpty()) {
const auto local = Core::TryConvertUrlToLocal(url);
if (local.isEmpty()) {