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

Fix layout of some media, enable GIF autoplay.

This commit is contained in:
John Preston
2018-01-19 15:13:06 +03:00
parent d326c7e3fa
commit e6baf8ef5b
17 changed files with 66 additions and 194 deletions

View File

@@ -786,7 +786,6 @@ void Session::documentConvert(
}
documentApplyFields(original, data);
if (idChanged) {
// #TODO check audio, sticker, GIF animation, saved GIF?..
const auto newKey = original->mediaKey();
if (oldKey != newKey) {
if (original->isVoiceMessage()) {
@@ -842,7 +841,6 @@ void Session::documentApplyFields(
document->setattributes(attributes);
document->setRemoteVersion(version);
if (dc != 0 && access != 0) {
// #TODO was "!document->isValid()" - check if it is fine for convert
document->setRemoteLocation(dc, access);
}
document->date = date;