2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Handle view resize/repaint requests for mainView.

This commit is contained in:
John Preston
2018-01-18 14:46:45 +03:00
parent d1a9d3992b
commit 91f369a0b3
19 changed files with 121 additions and 108 deletions

View File

@@ -1579,7 +1579,7 @@ void MainWidget::handleAudioUpdate(const AudioMsgId &audioId) {
}
if (const auto item = App::histItemById(audioId.contextId())) {
Auth().data().requestItemViewRepaint(item);
Auth().data().requestItemRepaint(item);
item->audioTrackUpdated();
}
if (const auto items = InlineBots::Layout::documentItems()) {
@@ -4826,7 +4826,7 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
if (auto item = App::histItemById(channel, msgId.v)) {
if (item->isMediaUnread()) {
item->markMediaRead();
Auth().data().requestItemViewRepaint(item);
Auth().data().requestItemRepaint(item);
}
} else {
// Perhaps it was an unread mention!