2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix a crash in non-authorized Settings.

This commit is contained in:
John Preston
2023-01-10 18:41:13 +04:00
parent 12c2e42917
commit 2fda96a375

View File

@@ -748,7 +748,6 @@ void Preview::initAsWindow() {
const auto user = controller
? controller->session().user().get()
: nullptr;
auto view = user->activeUserpicView();
const auto preview = slider->lifetime().make_state<Preview>(
slider.get(),
user ? Data::PeerUserpicImageValue(user, 160, 0) : nullptr);