2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Move Image and derived to ui/image.

This commit is contained in:
John Preston
2018-10-11 18:54:57 +03:00
parent d56a3d015b
commit 113f665295
48 changed files with 1917 additions and 1776 deletions

View File

@@ -33,6 +33,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "data/data_channel_admins.h"
#include "data/data_feed.h"
#include "ui/text_options.h"
#include "ui/image.h"
#include "core/crash_reports.h"
namespace {
@@ -1261,7 +1262,7 @@ void History::mainViewRemoved(
}
void History::newItemAdded(not_null<HistoryItem*> item) {
App::checkImageCacheSize();
Images::CheckCacheSize();
item->indexAsNewItem();
if (const auto from = item->from() ? item->from()->asUser() : nullptr) {
if (from == item->author()) {