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

Move draw / getState code to HistoryView::Message.

Item dimensions broken for now.
Also remove history.h from pch.
This commit is contained in:
John Preston
2018-01-13 15:45:11 +03:00
parent bee474f6e9
commit 97a9089ebf
95 changed files with 3215 additions and 2768 deletions

View File

@@ -35,6 +35,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "apiwrap.h"
#include "dialogs/dialogs_widget.h"
#include "dialogs/dialogs_key.h"
#include "history/history.h"
#include "history/history_widget.h"
#include "history/history_message.h"
#include "history/history_media.h"
@@ -705,7 +706,7 @@ void MainWidget::webPagesOrGamesUpdate() {
auto j = items.constFind(App::webPage(webPageId));
if (j != items.cend()) {
for_const (auto item, j.value()) {
item->setPendingInitDimensions();
Auth().data().requestItemViewResize(item);
}
}
}
@@ -717,7 +718,7 @@ void MainWidget::webPagesOrGamesUpdate() {
auto j = items.constFind(App::game(gameId));
if (j != items.cend()) {
for_const (auto item, j.value()) {
item->setPendingInitDimensions();
Auth().data().requestItemViewResize(item);
}
}
}
@@ -4909,7 +4910,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
}
App::historyUnregItem(local);
Auth().messageIdChanging.notify({ local, newId }, true);
local->setId(d.vid.v);
local->setRealId(d.vid.v);
App::historyRegItem(local);
Auth().data().requestItemRepaint(local);
}