mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix crash in redundant checkStartUrl call.
This commit is contained in:
parent
2ef47222f4
commit
10ced19841
2 changed files with 6 additions and 11 deletions
|
@ -298,15 +298,12 @@ bool ResolveUsername(
|
||||||
post = ShowAtGameShareMsgId;
|
post = ShowAtGameShareMsgId;
|
||||||
}
|
}
|
||||||
const auto clickFromMessageId = context.value<FullMsgId>();
|
const auto clickFromMessageId = context.value<FullMsgId>();
|
||||||
if (const auto controller = App::wnd()->sessionController()) {
|
controller->content()->openPeerByName(
|
||||||
controller->content()->openPeerByName(
|
domain,
|
||||||
domain,
|
post,
|
||||||
post,
|
startToken,
|
||||||
startToken,
|
clickFromMessageId);
|
||||||
clickFromMessageId);
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ResolvePrivatePost(
|
bool ResolvePrivatePost(
|
||||||
|
|
|
@ -370,8 +370,6 @@ MainWidget::MainWidget(
|
||||||
cSetOtherOnline(0);
|
cSetOtherOnline(0);
|
||||||
|
|
||||||
_history->start();
|
_history->start();
|
||||||
|
|
||||||
Core::App().checkStartUrl();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWidget::~MainWidget() = default;
|
MainWidget::~MainWidget() = default;
|
||||||
|
|
Loading…
Add table
Reference in a new issue