2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Create only one EmojiImageLoader to fix a crash.

This commit is contained in:
John Preston
2020-06-22 23:01:19 +04:00
parent 2e7a89d9c4
commit 51c2bc7349
10 changed files with 234 additions and 152 deletions

View File

@@ -200,7 +200,7 @@ void System::clearFromHistory(not_null<History*> history) {
void System::clearFromSession(not_null<Main::Session*> session) {
_manager->clearFromSession(session);
for (auto i = _whenMaps.begin(), e = _whenMaps.end(); i != e;) {
for (auto i = _whenMaps.begin(); i != _whenMaps.end();) {
const auto history = i->first;
if (&history->session() == session) {
history->clearNotifications();