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;
}
const auto clickFromMessageId = context.value<FullMsgId>();
if (const auto controller = App::wnd()->sessionController()) {
controller->content()->openPeerByName(
domain,
post,
startToken,
clickFromMessageId);
return true;
}
return false;
controller->content()->openPeerByName(
domain,
post,
startToken,
clickFromMessageId);
return true;
}
bool ResolvePrivatePost(

View File

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