mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Fix crash in subscribe button.
This commit is contained in:
@@ -1783,7 +1783,7 @@ not_null<Ui::GradientButton*> CreateSubscribeButton(
|
|||||||
controller = args.controller,
|
controller = args.controller,
|
||||||
computeRef = args.computeRef,
|
computeRef = args.computeRef,
|
||||||
computeBotUrl = args.computeBotUrl] {
|
computeBotUrl = args.computeBotUrl] {
|
||||||
const auto url = computeBotUrl ? QString() : computeBotUrl();
|
const auto url = computeBotUrl ? computeBotUrl() : QString();
|
||||||
if (!url.isEmpty()) {
|
if (!url.isEmpty()) {
|
||||||
const auto local = Core::TryConvertUrlToLocal(url);
|
const auto local = Core::TryConvertUrlToLocal(url);
|
||||||
if (local.isEmpty()) {
|
if (local.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user