Fix crash in redundant checkStartUrl call.

This commit is contained in:
John Preston 2020-06-30 17:23:21 +04:00
parent 2ef47222f4
commit 10ced19841
2 changed files with 6 additions and 11 deletions

View file

@ -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(

View file

@ -370,8 +370,6 @@ MainWidget::MainWidget(
cSetOtherOnline(0); cSetOtherOnline(0);
_history->start(); _history->start();
Core::App().checkStartUrl();
} }
MainWidget::~MainWidget() = default; MainWidget::~MainWidget() = default;