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

HistoryMedia always holds a pointer to its parent HistoryItem.

Using local cached data when sending media inline bot results.
This commit is contained in:
John Preston
2016-04-10 18:53:01 +04:00
parent 1fe562ec13
commit fe59c815b2
13 changed files with 673 additions and 576 deletions

View File

@@ -2336,7 +2336,7 @@ namespace {
GifItems gifs = ::gifItems;
for (GifItems::const_iterator i = gifs.cbegin(), e = gifs.cend(); i != e; ++i) {
if (HistoryMedia *media = i.value()->getMedia()) {
media->stopInline(i.value());
media->stopInline();
}
}
}