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

Handle channel event log mouse events.

This commit is contained in:
John Preston
2017-06-22 00:38:31 +03:00
parent 1791b251ad
commit e39b95175b
50 changed files with 1298 additions and 668 deletions

View File

@@ -253,7 +253,7 @@ bool isMediaViewShown() {
return false;
}
void repaintHistoryItem(const HistoryItem *item) {
void repaintHistoryItem(gsl::not_null<const HistoryItem*> item) {
if (auto main = App::main()) {
main->ui_repaintHistoryItem(item);
}
@@ -379,7 +379,7 @@ void handlePendingHistoryUpdate() {
if (auto media = item->getMedia()) {
if (auto reader = media->getClipReader()) {
if (!reader->started() && reader->mode() == Media::Clip::Reader::Mode::Video) {
item->history()->resizeGetHeight(item->history()->width);
item->resizeGetHeight(item->width());
}
}
}