mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Update API scheme to layer 92.
This commit is contained in:
@@ -1024,7 +1024,7 @@ void History::applyServiceChanges(
|
||||
case mtpc_photoCachedSize: bigLoc = &bigSize.c_photoCachedSize().vlocation; break;
|
||||
}
|
||||
if (smallLoc && bigLoc) {
|
||||
const auto newPhotoId = photo ? photo->id : 0;
|
||||
const auto newPhotoId = photo ? photo->id : PhotoId();
|
||||
if (const auto chat = peer->asChat()) {
|
||||
chat->setPhoto(newPhotoId, MTP_chatPhoto(*smallLoc, *bigLoc));
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
|
Reference in New Issue
Block a user