Fix crash from background access to style::icon-s.

This commit is contained in:
John Preston
2022-02-01 15:24:28 +03:00
parent 3a1bb1966d
commit b415b293cf
5 changed files with 21 additions and 7 deletions
@@ -1632,6 +1632,7 @@ void SessionController::cacheChatTheme(
this,
result = std::make_shared<Ui::ChatTheme>(std::move(descriptor))
]() mutable {
result->finishCreateOnMain();
cacheChatThemeDone(std::move(result));
});
});