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,7 +298,6 @@ bool ResolveUsername(
post = ShowAtGameShareMsgId;
}
const auto clickFromMessageId = context.value<FullMsgId>();
if (const auto controller = App::wnd()->sessionController()) {
controller->content()->openPeerByName(
domain,
post,
@ -306,8 +305,6 @@ bool ResolveUsername(
clickFromMessageId);
return true;
}
return false;
}
bool ResolvePrivatePost(
Window::SessionController *controller,

View File

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